(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))