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)