emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: C++-mode: Syntax highlighting: wrong color for funct


From: martin rudalics
Subject: Re: address@hidden: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows]
Date: Tue, 14 Feb 2006 21:13:23 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Huh?  Why would window-start matter?

Because fontification triggered by redisplay will fontify the displayed
area first.  `jit-lock-context-fontify' would reset the fontified
property for everything after the "<<".  Redisplay now would trigger
refontification below window-start.  It won't care about the "<<".

> I'm not sure which hook you're talking about.  The code I wrote above is
> meant to be used on font-lock-keywords when finding a ">>".

The hook that would trigger searching for the "<<" after a buffer
change, `before-font-lock-after-change-function' or whatever it will be
called.  I simply believe that searching some 1000 characters every time
you type one single character may slow down editing noticeably.  But
maybe I didn't understand the scenario correctly.






reply via email to

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