emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: highlight-changes-rotate-faces sets buffer modified


From: martin rudalics
Subject: Re: address@hidden: highlight-changes-rotate-faces sets buffer modified flag]
Date: Wed, 09 May 2007 23:59:48 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>     (2) Suppose I reset the buffer-modified flag and bind `buffer-undo-list'
>     to t as in my patch.  In this case I would not be able to undo the
>     change caused by `highlight-changes-rotate-faces' and end up with quite
>     confusing colors after an arbitrary sequence of undos and saves.
>
> Should this mode use overlays?

It does use a combination of text-properties and overlays.  On my
machine, the combined use of an after-change hook and overlays already
seems to cause a noticeable slowdown during editing.

> Should it use something the font-lock mechanism so that it can update
> when the buffer is edited?

Hmmm ... it does so, in principle, but for the reliance on the undo
mechanism.  I doubt that we can do much better.





reply via email to

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