diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-17 13:37:51 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-17 13:37:51 +0200 |
commit | 5be9a9cacfaae1959c4b95c45c146044a181ad20 (patch) | |
tree | 23e138d4719a46cf36538c89ca7cc694a387bc6a /test/lisp/files-tests.el | |
parent | 0829c6836eff14dda0cf8b3047376967f7b000f4 (diff) | |
download | emacs-5be9a9cacfaae1959c4b95c45c146044a181ad20.tar.gz |
Add a new command `restart-emacs'
* doc/lispref/os.texi (Killing Emacs): Document it.
* lisp/files.el (save-buffers-kill-emacs): Add new RESTART parameter.
(restart-emacs): New function.
* src/emacs.c (terminate_due_to_signal, Fkill_emacs): Take an
optional RESTART parameter.
* test/lisp/files-tests.el
(files-tests-save-buffers-kill-emacs--confirm-kill-processes):
* src/xterm.c (x_connection_closed):
* src/xsmfns.c (Fhandle_save_session):
* src/keyboard.c (Fcommand_error_default_function, command_loop)
(command_loop_1, read_menu_command, read_event_from_main_queue)
(read_key_sequence, quit_throw_to_read_char):
* src/eval.c (process_quit_flag): Adjust Fkill_emacs callers.
Diffstat (limited to 'test/lisp/files-tests.el')
-rw-r--r-- | test/lisp/files-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index 42b09201de8..e4424f3cbed 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el @@ -263,7 +263,7 @@ form.") nil)) (kill-emacs-args nil) ((symbol-function #'kill-emacs) - (lambda (&optional arg) (push arg kill-emacs-args))) + (lambda (&optional arg arg) (push arg kill-emacs-args))) (process (make-process :name "sleep" |