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

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

bug#18: Fine-grained revert-buffer


From: Dmitry Gutov
Subject: bug#18: Fine-grained revert-buffer
Date: Tue, 17 Dec 2013 05:16:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

The described functionality seems to be more or less available now.

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

> Write a revert-buffer that uses something like `diff' and then applies
> the patch to the buffer, so as to better preserve markers and undo
> info.

`revert-buffer' now preserves undo history.

> This would be used in places where a revert-buffer is needed but the
> changes are expected to be small, e.g. in VC.

`diff-hl' (in GNU ELPA) has command `diff-hl-revert-hunk' which reverts
only the diff hunk around point.





reply via email to

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