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 #32 received at 77323 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Apart from that, this case doesn't really fit into any other case that
> handles automatically created buffers. Although -
> `ediff-dispose-of-variant-according-to-user' is not only about indirect
> buffers, right? We could marry this case with this existing mechanism.
> Would that make some sense?
Currently, ediff-dispose-of-variant-according-to-user
- kills any indirect buffers with ediff-temp-indirect-buffer non-nil
(used by region/window comparison), and
- if ediff-keep-variants is nil, asks about killing any unmodified
buffers.
It's not clear to me how best to fit modified non-file buffers (such as
the FILE=... buffer produced by ediff-current-file) into this picture.
And, as you point out, the user might wish to keep such buffers around.
> And apart from that, adding a STARTUP-HOOKS argument to
> `ediff-current-file' looks acceptable to me, although it would have no
> direct uses in Emacs currently. I don't like it when users are forced
> to use really bad hacks to change the behavior of such cases.
That indeed seems like the simplest way to allow customization that
doesn't resort to hacks or simply overwriting the function, so please
see the attached patch.
[Message part 2 (text/x-patch, attachment)]
This bug report was last modified 97 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.