From: Lars Ingebrigtsen Date: Mon, 13 Sep 2021 10:35:50 +0000 (+0200) Subject: Document backtrace-on-error-noninteractive in the --batch section X-Git-Tag: emacs-28.0.90~1007 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0dc630b35bba13e812736ccaf6d5154f6c8277b9;p=emacs.git Document backtrace-on-error-noninteractive in the --batch section * doc/emacs/cmdargs.texi (Initial Options): Mention backtrace-on-error-noninteractive. --- 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