]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change
authorEli Zaretskii <eliz@gnu.org>
Sat, 28 Dec 2024 12:38:55 +0000 (14:38 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:22:25 +0000 (21:22 +0100)
* lisp/vc/ediff-util.el (ediff--delete-temp-files-on-kill-emacs):
Add commentary explaining the precautions.  (Bug#74881)

(cherry picked from commit c9be6f731de12b1c9eda0c51e188953e56ba0767)

lisp/vc/ediff-util.el

index 2b5caa76ec7cf525d692bf3a4e41d3d692727bbe..a2ff65b875ece6fcc19686a6656f25778d6e13d5 100644 (file)
@@ -215,6 +215,10 @@ to invocation.")
 
 (defun ediff--delete-temp-files-on-kill-emacs ()
   "Delete the temp-files associated with the ediff buffers."
+  ;; We inhibit interaction and ignore any errors to avoid the situation
+  ;; 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))