From 5d21b65eaa45c996182ce3181b1289ed03ff1c26 Mon Sep 17 00:00:00 2001 From: Lin Sun Date: Sun, 29 Dec 2024 06:55:01 +0000 Subject: [PATCH] * lisp/vc/ediff-util.el: Loop the ediff-session-registry instead of buffers --- lisp/vc/ediff-util.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.34.1