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


Message #80 received at 77580 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: 77580 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: Re: bug#77580: [PATCH] New command ediff-undo
Date: Tue, 15 Apr 2025 18:18:43 +0200
Paul Nelson <ultrono <at> gmail.com> writes:

> And (with apologies for the spam) a further, hopefully final update,
> that works in narrowed buffers.

Some comments about your code, independent of how the end result will
look like:

 - Consider to handle an active region similar to how you handle
 narrowing: undo is able to restrict undoing to the region.

 - There is a potential problem with the target buffers of
 `undo-to-buffer': they share the `buffer-file-name' with the original
 buffer.  If they are modified, Emacs will potentially save the contents
 of these buffers to that file, resulting in a mess.

 - Since you mentioned reverting as a use case: doesn't the undo history
 get lost when a buffer is reverted?  I remember that this is the case
 at least sometimes.


Michael.




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.