emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock bug in cc-mode


From: Chong Yidong
Subject: Re: font-lock bug in cc-mode
Date: Thu, 29 Mar 2007 21:40:00 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>     emacs -Q +132 .../emacs/src/lisp.h
>
> Inserting space + undoing will sort it out, so it might be triggered
> by the chunking done by jit-lock.

Increasing jit-lock-chunk-size to 2000 makes this fontification glitch
go away.  From looking at the cc-fonts:1478, it appears that
identifiers in enum lists are only fontified up to the limit supplied
by jit-lock.  Therefore, very long enum lists don't get fontified.

I don't know if there's a good way to fix this.  Maybe the relevant
font-lock matcher function should reset the limit to the end of the
enum block, but that might cause problems when editing unterminated
enum blocks.  Maybe this should be left for post-22.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]