[Top][All Lists]

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

Re: Is there something like `on-display-functions'?

From: Stefan Monnier
Subject: Re: Is there something like `on-display-functions'?
Date: Wed, 27 Jan 2010 10:11:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

>> Is there some hook called each time something's about to be displayed on
>> the screen (regardless of whether or not font-lock is enabled)?

There's fontification-functions, which is the hook around which jit-lock
is implemented.  

I'd recommend you use jit-lock instead (via jit-lock-register), tho,
because fontification-functions (despite its name) really only works
well with a single function (at least I don't know how to make it work
well with more than one, based on how it's currently defined).

>> If there is, I could use it to apply the appropriate text properties to
>> C++ template delimiters as they're about to be displayed, thus
>> potentially speeding up startup for C++ (and like languages).

Of course, if these are syntax-table properties, it will not solve all
problems, since the buffer-movement may still get buggy when it depends
on text that hasn't been displayed yet.

>> Yes, I've tried searching for it and not found it.
> Just curious, but why don't you want to use font-lock for it?

He probably wants it to work even when font-lock is disabled.


reply via email to

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