GNU bug report logs -
#77323
[PATCH] Allow temp buffer cleanup in ediff-current-file
Previous Next
Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>
Date: Thu, 27 Mar 2025 21:55:02 UTC
Severity: normal
Tags: patch
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When ediff-current-file compares a modified buffer with its saved
version, it creates a temporary "FILE=..." buffer to hold the saved
contents. Currently, this buffer persists after the Ediff session
quits, requiring manual cleanup later.
In my experience, this buffer serves no further purpose once the
comparison is done, and just clutters the buffer list. On the other
hand, I could imagine someone using it as a way to retain a snapshot of
the saved file state.
The attached patch introduces a user option that, when non-nil, causes
the "FILE=..." buffer to be killed automatically after quitting Ediff.
The default is nil, so that the patch does not modify existing behavior.
Such automatic cleanup does not seem achievable via existing Ediff
hooks.
Any feedback would be welcome.
Thanks, best,
Paul
[Message part 2 (text/x-patch, attachment)]
This bug report was last modified 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.