From 0dc630b35bba13e812736ccaf6d5154f6c8277b9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 13 Sep 2021 12:35:50 +0200 Subject: [PATCH] Document backtrace-on-error-noninteractive in the --batch section * doc/emacs/cmdargs.texi (Initial Options): Mention backtrace-on-error-noninteractive. --- doc/emacs/cmdargs.texi | 5 +++++ etc/NEWS | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index b7f0bda7851..d5177faea99 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi @@ -266,6 +266,11 @@ disables auto-saving except in buffers for which auto-saving is explicitly requested, and when saving files it omits the @code{fsync} system call unless otherwise requested. +@vindex backtrace-on-error-noninteractive +Errors that occur when running a @samp{--batch} Emacs will result in +an Emacs Lisp backtrace being printed. To disable this behaviour, set +@code{backtrace-on-error-noninteractive} to @code{nil}. + @item --script @var{file} @opindex --script @cindex script mode diff --git a/etc/NEWS b/etc/NEWS index 76beb790678..7d16bf08f38 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2983,6 +2983,7 @@ file: * Incompatible Lisp Changes in Emacs 28.1 ++++ ** Emacs now prints a backtrace when signaling an error in batch mode. This makes debugging Emacs Lisp scripts run in batch mode easier. To get back the old behavior, set the new variable -- 2.39.5