|
| 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: | Tue, 14 Feb 2006 14:00:17 -0500 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> Indeed. You can use contextual refontification, tho:
>>
>> (if jit-lock-context-unfontify-pos
>> (setq jit-lock-context-unfontify-pos
>> (min jit-lock-context-unfontify-pos
>> (re-search-backward "<<" limit t))))
>>
>> it's specific to jit-lock, tho.
> Provided the "<<" is still after window-start, though.
Huh? Why would window-start matter?
> In any case, it's completely inappropriate to search tags in the hook.
> The hook should trigger an idle timed function that would do the search.
> And you could calmly replace the 1000 characters limit by something more
> useful.
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 ">>".
Stefan
| [Prev in Thread] | Current Thread | [Next in Thread] |