]> git.eshelyaron.com Git - emacs.git/commit
Add a new command `restart-emacs'
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2022 11:37:51 +0000 (13:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2022 11:37:51 +0000 (13:37 +0200)
commit5be9a9cacfaae1959c4b95c45c146044a181ad20
tree23e138d4719a46cf36538c89ca7cc694a387bc6a
parent0829c6836eff14dda0cf8b3047376967f7b000f4
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.
doc/lispref/os.texi
etc/NEWS
lisp/files.el
src/emacs.c
src/eval.c
src/keyboard.c
src/xdisp.c
src/xsmfns.c
src/xterm.c
test/lisp/files-tests.el