From: Sean Whitton Date: Fri, 25 Oct 2024 04:43:23 +0000 (+0800) Subject: save-buffers-kill-emacs: Adjust confirmation prompt when restarting X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae16480fb00588e431d7267ac7f1ec67ca15df2a;p=emacs.git save-buffers-kill-emacs: Adjust confirmation prompt when restarting * lisp/files.el (save-buffers-kill-emacs): When restarting, ask "Really restart Emacs?". (cherry picked from commit df677f65fd1b4f0d16e59d5df9735139d2a667c8) --- diff --git a/lisp/files.el b/lisp/files.el index 1186d1cc2c3..bbf2ddf8c2d 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -8560,7 +8560,8 @@ If RESTART, restart Emacs after killing the current Emacs process." ;; Query the user for other things, perhaps. (run-hook-with-args-until-failure 'kill-emacs-query-functions) (or (null confirm) - (funcall confirm "Really exit Emacs? ")) + (funcall confirm (format "Really %s Emacs? " + (if restart "restart" "exit")))) (kill-emacs nil restart)))) (defun save-buffers-kill-terminal (&optional arg)