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: Kim F. Storm
Subject: Re: address@hidden: Re: jit lock sit-for provokes redisplay provokes imenu]
Date: Wed, 30 Aug 2006 09:52:03 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> 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 ;-)

I still vote for installing Martin's buffer-chars-modified-tick

 ... anything else seems to be "too much" or "too little" or "too slow" :-)

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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