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: Óscar Fuentes
Subject: Re: Reverting but keeping undo
Date: Thu, 16 May 2013 17:10:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

wgreenhouse@riseup.net (W. Greenhouse)
writes:

> From looking at the code of `revert-buffer', this
> problem could be solved without getting rid of all those nice features
> if you put an advice around revert-buffer that stashed
> `buffer-undo-list' away inside a let-bound variable before revertying,
> and then reset `buffer-undo-list' from that variable afterwards.

Interesting, I'll try it.

Thank you.




reply via email to

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