|
| From: | Stefan Monnier |
| Subject: | Re: address@hidden: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows] |
| Date: | Wed, 15 Mar 2006 05:22:41 -0500 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> For that to work correctly I also had to adapt
> `jit-lock-context-unfontify-pos' in the custom function as suggested by
> you earlier. Otherwise the part of the region before the line where
> a change happened won't get refontified correctly. That means it will
> only be refontified upon redisplay (I guess), e.g. if one enters the
> minibuffer with `M-x'. So I wonder if a hook in
> `font-lock-default-fontify-region' might have to cater for that as well.
Yes, indeed. But we can make font-lock-default-fontify-region take care of
it transparently without the hook having to know about it.
Stefan
| [Prev in Thread] | Current Thread | [Next in Thread] |