[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files o
From: |
Michael Heerdegen |
Subject: |
bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs |
Date: |
Mon, 30 Dec 2024 00:34:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
> > > @@ -488,6 +496,7 @@ ediff-setup
> > > (if (ediff-buffer-live-p ediff-meta-buffer)
> > > (ediff-update-meta-buffer
> > > ediff-meta-buffer nil ediff-meta-session-number))
> > > + (add-hook 'kill-emacs-hook
> > > #'ediff--delete-temp-files-on-kill-emacs)
> >
> > Would it be ok to avoid the above loop completely by using the buffer
> > local version of `kill-emacs-hook' instead?
>
> You assume that the temporary Ediff files are always visited in some
> buffer? Is that assumption true?
I think you misunderstood: my idea was to put `ediff-delete-temp-files'
to the local hook binding of the ediff control buffers (which we
currently consult anyway). This would result in the same calls as now -
at least when local `kill-emacs-hook' bindings worked.
Michael.
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, (continued)
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Michael Heerdegen, 2024/12/28
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Lin Sun, 2024/12/28
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Michael Heerdegen, 2024/12/29
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Lin Sun, 2024/12/29
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Michael Heerdegen, 2024/12/30
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Eli Zaretskii, 2024/12/29
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs,
Michael Heerdegen <=
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Eli Zaretskii, 2024/12/30
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Michael Heerdegen, 2024/12/30