[Top][All Lists]

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

Re: Slow fontification in C mode buffers

From: Alan Mackenzie
Subject: Re: Slow fontification in C mode buffers
Date: Wed, 14 Dec 2011 11:30:25 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello again, Kanru!

On Tue, Dec 13, 2011 at 11:31:36PM +0800, Kan-Ru Chen wrote:
> Alan Mackenzie <address@hidden> writes:

> > By a happy coincidence, I've just tracked down another sluggishness (in
> > large array initialisations, reported by Peter Milliken on bug-cc-mode)
> > which looks to have exactly the same cause, namely
> > `c-font-lock-enclosing-decls' which fontifies the innards of a
> > struct/union/enum when jit-lock etc. starts in the middle of it.

> Is this the same problem?


> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10288

I've seen what the problem is.  You've got lots of declarations not
separated by commas.  If DEFINE_DATA_ENTRY is a macro "with its own
semicolon", follow the instructions in chapter "Macros with ;" in the CC
Mode manual.

> -- 
> Kanru

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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