From df677f65fd1b4f0d16e59d5df9735139d2a667c8 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 25 Oct 2024 12:43:23 +0800 Subject: [PATCH] save-buffers-kill-emacs: Adjust confirmation prompt when restarting * lisp/files.el (save-buffers-kill-emacs): When restarting, ask "Really restart Emacs?". --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 114ddc9c259..9c105dbe1a5 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -8490,7 +8490,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)