emacs/doc
Stefan Monnier a952324e9b keyboard.c: Allow SIGINT to quit in batch mode, instead of exit
In terminal sessions, SIGINT is turned into a `quit` ELisp signal,
but in batch it has traditionally killed Emacs.  It can be very
useful to cause a `quit` from outside the process when running
in batch (e.g. for "batch" sessions that provide a REPL via stdin/out),
so add a new var 'kill-emacs-on-sigint' to control that behavior.
(bug#80942)

* src/keyboard.c (handle_interrupt_signal): Obey `kill_emacs_on_sigint`.
(init_keyboard): Use `deliver_interrupt_signal` for SIGINT also for
batch sessions.
(syms_of_keyboard): New variable `kill_emacs_on_sigint`.

* test/src/keyboard-tests.el (keyboard-sigint-to-quit): New test.

* doc/emacs/cmdargs.texi (Initial Options): Mention the effect of
`kill-emacs-on-sigint` in batch mode.
2026-05-04 12:49:35 -04:00
..
emacs keyboard.c: Allow SIGINT to quit in batch mode, instead of exit 2026-05-04 12:49:35 -04:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi: Update *Backtrace* outputs. 2026-05-03 12:06:54 +01:00
lispref ; Fix minor issues in SQLite docs 2026-04-27 13:57:06 +03:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc Update to Transient v0.13.2-10-gf7894ca4 2026-05-01 22:06:03 +02:00
translations ; * doc/translations/fr/misc/ses-fr.texi: Typo. 2026-05-03 17:44:09 +02:00