GNU bug report logs - #77580
[PATCH] New command ediff-undo

Previous Next

Package: emacs;

Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>

Date: Sun, 6 Apr 2025 15:46:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: "Paul D. Nelson" <ultrono <at> gmail.com>
Cc: 77580 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#77580: [PATCH] New command ediff-undo
Date: Thu, 10 Apr 2025 19:01:31 +0300
> In practice, I've just spammed C-u enough times.  I considered allowing
> a negative argument to signal "undo everything", which would be most
> useful with an active region; how does that sound?

To me a negative argument would be the most important feature
of the new command 'diff-with-undo'.  Let me explain my workflow:
sometimes I open a file with uncommitted changes and make
more changes before committing it, but then later discover that
some changes were wrong, so need to revert to the previous state.

There is no other command to do this: 'vc-diff' includes other
uncommitted changes from other editing sessions, there is no backup for
'diff-backup', 'diff-buffer-with-file' can't compare the saved buffer.

So a negative argument for 'diff-with-undo' would be perfect to show
a diff with all recent changes.  Then could reverse the diff and remove
some hunks by applying them from the reverse diff, etc.




This bug report was last modified 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.