[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect faces on display
From: |
Kim F. Storm |
Subject: |
Re: Incorrect faces on display |
Date: |
Sat, 11 Dec 2004 02:21:30 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Does this patch give good results?
*** xdisp.c 09 Dec 2004 09:50:26 +0100 1.944
--- xdisp.c 11 Dec 2004 02:20:12 +0100
***************
*** 5140,5145 ****
--- 5140,5148 ----
it->dpvec = NULL;
it->current.dpvec_index = -1;
+ /* Recheck faces after display vector */
+ it->stop_charpos = 0;
+
/* Skip over characters which were displayed via IT->dpvec. */
if (it->dpvec_char_len < 0)
reseat_at_next_visible_line_start (it, 1);
Stefan Monnier <address@hidden> writes:
> I started seeing recently problems where elisp code gets displayed with the
> font-lock-comment-face even though it's not a comment.
>
> This always shows up right after an invisible piece of text (I use
> outline-minor-mode in elisp).
>
> I first thought it was some funny bug in font-lock or jit-lock, but a quick
> C-u C-x = shows that the text-properties are correct: the problem is in
> the redisplay.
>
> I finally came up with a recipe to reproduce it:
>
> emacs -Q -f global-font-lock-mode -f outline-minor-mode
>
> (; RET a RET (foobar C-u 1000 M-x hide-sublevels
>
> If all goes well, you'll see that the second line displays "(foobar" using
> font-lock-comment-face.
>
>
> Stefan
>
>
> _______________________________________________
> Emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
>
>
--
Kim F. Storm <address@hidden> http://www.cua.dk