emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0dc630b: Document backtrace-on-error-noninteractive in the --batc


From: Lars Ingebrigtsen
Subject: master 0dc630b: Document backtrace-on-error-noninteractive in the --batch section
Date: Mon, 13 Sep 2021 06:36:01 -0400 (EDT)

branch: master
commit 0dc630b35bba13e812736ccaf6d5154f6c8277b9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 b7f0bda..d5177fa 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 76beb79..7d16bf0 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]