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: Thu, 16 Feb 2006 10:09:50 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I strongly oppose such a change.  With that change:

(i) font-lock-fontify-region would no longer be fontifying the region
specified by its paramters, but a different (possibly larger) one.

Note that jit-lock doesn't care about any "parameters".  It fontifies
whatever redisplay or a timer triggered function ask it to fontify.

Both of these things would make debugging a hook function much more
difficult than it already is.  Determining the region to fontify and
actually fontifying it are two logically distinct operations.  They
shouldn't be intermingled with eachother.

With jit-lock you don't determine "the region to fontify".  You only
determine regions that might need (re-)fontification when they are
redisplayed or - with stealth fontification - emacs is idle.







reply via email to

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