emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: Re: jit lock sit-for provokes redisplay provokes ime


From: Stefan Monnier
Subject: Re: address@hidden: Re: jit lock sit-for provokes redisplay provokes imenu]
Date: Tue, 29 Aug 2006 23:41:19 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> How about this?  It adds jit-lock-pre-stealth-fontify-hook and
> jit-lock-post-stealth-fontify-hook, which are normal hooks run before
> and after each chunk of stealth fontification.  Then imenu can use
> this to avoid menu bar updates resulting from stealth fontification.

This only eliminates one particular source of unwanted updates.  I don't
think this code is worth the trouble.  At the very least, add it to
font-lock rather than jit-lock.
Better yet, introduce a macro `with-buffer-unmodified' like the one used in
jit-lock, and make it manage a `buffer-really-modified-tick', kind of like
the buffer-chars-modified-tick.  Then use it in jit-lock/font-lock
and friends.


        Stefan


PS: And make sure it also works when nested ;-)




reply via email to

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