aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-12-08 18:43:09 +0200
committerEli Zaretskii2020-12-08 18:43:09 +0200
commit26b198cef987dc087994c8ce8bf852c4a37dbca0 (patch)
treea1abe6eecdb6303662c7eda65f7480e0ba19bfe1
parent38c9b0bbdd1c95dc34af4aaf27183fd27aba1c9e (diff)
downloademacs-26b198cef987dc087994c8ce8bf852c4a37dbca0.tar.gz
emacs-26b198cef987dc087994c8ce8bf852c4a37dbca0.zip
Improve documentation of 'backtrace-on-error-noninteractive'
* src/eval.c (syms_of_eval) <backtrace-on-error-noninteractive>: Format the doc string according to conventions. * etc/NEWS: Improve formatting and wording of the entry describing 'backtrace-on-error-noninteractive.
-rw-r--r--etc/NEWS8
-rw-r--r--src/eval.c6
2 files changed, 8 insertions, 6 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d796a4cdbcd..f2fd9fb1386 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -192,10 +192,10 @@ have been replaced with "chat.freenode.net" throughout Emacs.
192These functions return the connection local value of the respective 192These functions return the connection local value of the respective
193variables. This can be used for remote hosts. 193variables. This can be used for remote hosts.
194 194
195** Emacs now prints a backtrace when signaling an error in batch mode. This 195** Emacs now prints a backtrace when signaling an error in batch mode.
196makes debugging Emacs Lisp scripts run in batch mode easier. If you 196This makes debugging Emacs Lisp scripts run in batch mode easier. To
197want to disable this behavior, set 'backtrace-on-error-noninteractive' 197get back the old behavior, set the new variable
198to nil. 198'backtrace-on-error-noninteractive' to a nil value.
199 199
200 200
201* Editing Changes in Emacs 28.1 201* Editing Changes in Emacs 28.1
diff --git a/src/eval.c b/src/eval.c
index 1351d283c58..e2d70aaa0ef 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -4267,8 +4267,10 @@ still determine whether to handle the particular condition. */);
4267 4267
4268 DEFVAR_BOOL ("backtrace-on-error-noninteractive", 4268 DEFVAR_BOOL ("backtrace-on-error-noninteractive",
4269 backtrace_on_error_noninteractive, 4269 backtrace_on_error_noninteractive,
4270 doc: /* If non-nil and Emacs is running noninteractively, 4270 doc: /* Non-nil means print backtrace on error in batch mode.
4271print a backtrace on encountering an unhandled error. */); 4271If this is nil, errors in batch mode will just print the error
4272message upon encountering an unhandled error, without showing
4273the Lisp backtrace. */);
4272 backtrace_on_error_noninteractive = true; 4274 backtrace_on_error_noninteractive = true;
4273 4275
4274 /* The value of num_nonmacro_input_events as of the last time we 4276 /* The value of num_nonmacro_input_events as of the last time we