diff options
| author | Andrea Corallo | 2020-12-12 15:31:33 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-12-12 15:31:33 +0100 |
| commit | 0474fda62d79cb7eb250f34f19773c87f283c665 (patch) | |
| tree | df7418a6b22fbbfda725c56825ec0290f8e6be39 /src/eval.c | |
| parent | be907b0ba82c2a65e0468d50653cae8a7cf5f16b (diff) | |
| parent | 4afef614cd6c93b4d4a57aa5bb211563649abc56 (diff) | |
| download | emacs-0474fda62d79cb7eb250f34f19773c87f283c665.tar.gz emacs-0474fda62d79cb7eb250f34f19773c87f283c665.zip | |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index fb747c58838..2b31b91175b 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1799,7 +1799,8 @@ signal_or_quit (Lisp_Object error_symbol, Lisp_Object data, bool keyboard_quit) | |||
| 1799 | debugging. Make sure to use `debug' unconditionally to not interfere with | 1799 | debugging. Make sure to use `debug' unconditionally to not interfere with |
| 1800 | ERT or other packages that install custom debuggers. */ | 1800 | ERT or other packages that install custom debuggers. */ |
| 1801 | if (!debugger_called && !NILP (error_symbol) | 1801 | if (!debugger_called && !NILP (error_symbol) |
| 1802 | && (NILP (clause) || EQ (h->tag_or_ch, Qerror)) && noninteractive) | 1802 | && (NILP (clause) || EQ (h->tag_or_ch, Qerror)) && noninteractive |
| 1803 | && backtrace_on_error_noninteractive) | ||
| 1803 | { | 1804 | { |
| 1804 | ptrdiff_t count = SPECPDL_INDEX (); | 1805 | ptrdiff_t count = SPECPDL_INDEX (); |
| 1805 | specbind (Vdebugger, Qdebug); | 1806 | specbind (Vdebugger, Qdebug); |
| @@ -4344,6 +4345,14 @@ Note that `debug-on-error', `debug-on-quit' and friends | |||
| 4344 | still determine whether to handle the particular condition. */); | 4345 | still determine whether to handle the particular condition. */); |
| 4345 | Vdebug_on_signal = Qnil; | 4346 | Vdebug_on_signal = Qnil; |
| 4346 | 4347 | ||
| 4348 | DEFVAR_BOOL ("backtrace-on-error-noninteractive", | ||
| 4349 | backtrace_on_error_noninteractive, | ||
| 4350 | doc: /* Non-nil means print backtrace on error in batch mode. | ||
| 4351 | If this is nil, errors in batch mode will just print the error | ||
| 4352 | message upon encountering an unhandled error, without showing | ||
| 4353 | the Lisp backtrace. */); | ||
| 4354 | backtrace_on_error_noninteractive = true; | ||
| 4355 | |||
| 4347 | /* The value of num_nonmacro_input_events as of the last time we | 4356 | /* The value of num_nonmacro_input_events as of the last time we |
| 4348 | started to enter the debugger. If we decide to enter the debugger | 4357 | started to enter the debugger. If we decide to enter the debugger |
| 4349 | again when this is still equal to num_nonmacro_input_events, then we | 4358 | again when this is still equal to num_nonmacro_input_events, then we |