]> git.eshelyaron.com Git - emacs.git/commitdiff
Document backtrace-on-error-noninteractive in the --batch section
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Sep 2021 10:35:50 +0000 (12:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Sep 2021 10:35:50 +0000 (12:35 +0200)
* doc/emacs/cmdargs.texi (Initial Options): Mention
backtrace-on-error-noninteractive.

doc/emacs/cmdargs.texi
etc/NEWS

index b7f0bda78514af57a6054576077f3e7b17d1d9a4..d5177faea9934ac4d7bf0310b90512e66c7b8b14 100644 (file)
@@ -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
index 76beb79067894c31830a3e42679b8bc393da66fa..7d16bf08f38e6c1fccadaa76db1c695806882b78 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2983,6 +2983,7 @@ file:
 \f
 * 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