[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 02:37:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Lin Sun <sunlin7@hotmail.com> writes:
> I didn't found a local version of `kill-emacs-hook` example in emacs
> git repo.
I would expect it to work. I found one in Gnu Elpa, in "subed.el".
> Current version also work for the killing from command line, for
> example executing a "pkill emacs" during ediff session.
I think this feature would not go.
> diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
> index 33666535843..d448973b345 100644
> --- a/lisp/vc/ediff-util.el
> +++ b/lisp/vc/ediff-util.el
> @@ -219,12 +219,11 @@ ediff--delete-temp-files-on-kill-emacs
> ;; where this hook could prevent kill-emacs from shutting down Emacs,
> ;; because user interaction is not possible (e.g., in a daemon), or
> ;; if deleting these files signals an error.
> - (ignore-errors
> - (let ((inhibit-interaction t))
> - (dolist (b (buffer-list))
> + (let ((inhibit-interaction t))
> + (dolist (b ediff-session-registry)
> + (ignore-errors
> (with-current-buffer b
> - (when (eq major-mode 'ediff-mode)
> - (ediff-delete-temp-files)))))))
> + (ediff-delete-temp-files))))))
>
> ;;; Setup functions
Yes, this is what I had in mind when the local hook can't be used.
Thank you,
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, Lin Sun, 2024/12/15
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Lin Sun, 2024/12/27
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Eli Zaretskii, 2024/12/27
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Lin Sun, 2024/12/27
- bug#74881: 31.0.50; [PATCH] * lisp/vc/ediff-util.el: Remove temp files on kill-emacs, Eli Zaretskii, 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, Eli Zaretskii, 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/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 <=
- 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, 2024/12/29
- 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