emacs-devel
[Top][All Lists]
Advanced

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

Re: buffer is modified after commit


From: martin rudalics
Subject: Re: buffer is modified after commit
Date: Thu, 14 Feb 2008 23:46:19 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>    (push
>     (let* ((buffer-undo-list nil))
>       ...do your thing...
>       `(apply 'hilit-chg-undo-nomodify ,buffer-undo-list))
>     buffer-undo-list)

It would be very, very helpful if you turned this into a macro.  IMHO
subr.el should provide two macros: A standard one allowing to change
text properties on-the-fly and this one to additionally specify undo
information.  If you look at the current emacs sources you can find at
least ten ways how people decided to change text properties on-the-fly
and some of these might have to be undoable as well.  I also wonder how
often people have used overlays only to escape the problem of handling
the modified state of buffers (in one case the author apparently saved
the state even around an overlay modification).





reply via email to

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