help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Reverting but keeping undo


From: Michael Heerdegen
Subject: Re: Reverting but keeping undo
Date: Thu, 30 May 2013 20:41:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > `revert-buffer' discards undo history.
>
> FWIW, I just installed a patch in Emacs's trunk which makes that
> revert-buffer doesn't discard undo history any more.

I wonder how that works.  Generally, the undo history belongs to a
buffer content different from the content after reverting.  Does your
patch prevent surprises like "undoing" changes that were never made to
the newly read-in buffer content?

Reading all of this thread, there were very few arguments about the
subject itself.  Which advantage does this change offer?  Just curious.


Regards,

Michael.



reply via email to

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