diff options
| author | Eli Zaretskii | 2020-12-08 18:43:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-12-08 18:43:09 +0200 |
| commit | 26b198cef987dc087994c8ce8bf852c4a37dbca0 (patch) | |
| tree | a1abe6eecdb6303662c7eda65f7480e0ba19bfe1 | |
| parent | 38c9b0bbdd1c95dc34af4aaf27183fd27aba1c9e (diff) | |
| download | emacs-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/NEWS | 8 | ||||
| -rw-r--r-- | src/eval.c | 6 |
2 files changed, 8 insertions, 6 deletions
| @@ -192,10 +192,10 @@ have been replaced with "chat.freenode.net" throughout Emacs. | |||
| 192 | These functions return the connection local value of the respective | 192 | These functions return the connection local value of the respective |
| 193 | variables. This can be used for remote hosts. | 193 | variables. 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. |
| 196 | makes debugging Emacs Lisp scripts run in batch mode easier. If you | 196 | This makes debugging Emacs Lisp scripts run in batch mode easier. To |
| 197 | want to disable this behavior, set 'backtrace-on-error-noninteractive' | 197 | get back the old behavior, set the new variable |
| 198 | to 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. |
| 4271 | print a backtrace on encountering an unhandled error. */); | 4271 | If this is nil, errors in batch mode will just print the error |
| 4272 | message upon encountering an unhandled error, without showing | ||
| 4273 | the 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 |