unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 18@debbugs.gnu.org
Subject: bug#18: Fine-grained revert-buffer
Date: Tue, 17 Dec 2013 05:16:46 +0200	[thread overview]
Message-ID: <878uvki2u9.fsf@yandex.ru> (raw)
In-Reply-To: <jwvpruii0xr.fsf@iro.umontreal.ca> (Stefan Monnier's message of "Wed, 27 Feb 2008 15:44:48 -0500")

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	other threads:[~2013-12-17  3:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jwvpruii0xr.fsf@iro.umontreal.ca>
2013-12-17  3:16 ` Dmitry Gutov [this message]
2013-12-17 13:32   ` bug#18: Fine-grained revert-buffer Stefan Monnier
2018-04-12  6:21 ` Toon Claes
2018-04-12 12:18   ` Stefan Monnier
2018-04-14  7:00     ` Toon Claes
2018-04-14 14:14       ` Stefan Monnier
2019-04-26 22:42 ` Mauro Aranda
2019-04-27  7:34   ` Eli Zaretskii
2019-04-27 15:10     ` Mauro Aranda
2019-04-27 16:30       ` Eli Zaretskii
2019-04-27 17:46         ` Mauro Aranda
2019-04-29 12:49       ` martin rudalics
2019-05-02 15:54         ` Basil L. Contovounesios
2019-05-02 16:20           ` Glenn Morris
2019-05-02 16:23             ` Basil L. Contovounesios
2019-05-02 21:27           ` Richard Stallman
2019-05-03 14:05             ` Basil L. Contovounesios
2019-05-05 22:41               ` Richard Stallman
2019-04-27  8:31   ` martin rudalics
2019-04-28  2:47   ` Richard Stallman
2019-04-29 23:32     ` Mauro Aranda
2019-04-30  0:17       ` Mauro Aranda
2019-05-15 23:10         ` Mauro Aranda
2020-09-19 23:08           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878uvki2u9.fsf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=18@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).