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: Wed, 30 Aug 2006 16:49:34 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     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.

> That seems a lot more trouble, and I don't see that it is needed.

I suspect it's actually going to be less trouble ;-)
Or at least no worse: the code would simply be moved from jit-lock to this
new macro, and then the macro can be used anywhere, e.g. in jit-lock (where
we can remove the corresponding macro), font-lock (idem), and probably many
other places where we use restore-buffer-modified-p.

It'd end up providing something similar to Martin's
buffer-chars-modified-tick, except implemented in Lisp rather than in C.


        Stefan




reply via email to

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