diff options
| author | Eli Zaretskii | 2023-08-17 21:35:20 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-08-17 21:35:20 +0300 |
| commit | 3685387e609753293c4518be75e77c659c3b2d8d (patch) | |
| tree | 0cc2bf25e73fd20fc279e55bc53207050f41ac89 /src | |
| parent | 39e0121354c25919c20786782da0c5f1952278a8 (diff) | |
| download | emacs-3685387e609753293c4518be75e77c659c3b2d8d.tar.gz emacs-3685387e609753293c4518be75e77c659c3b2d8d.zip | |
Fix invocation with --debug-init and changes to debug-ignored-errors
* src/eval.c (syms_of_eval) <debug-ignored-errors>: Mention in the
doc string the caveat with removing errors from the standard value
while invoking Emacs with --debug-init.
* lisp/startup.el (startup--load-user-init-file): If the user's
init files add to the value of 'debug-ignored-errors', make sure
the additions are preserved after restoring the value we reset
during loading the init file, if Emacs was invoked with
"--debug-init". (Bug#65267)
Diffstat (limited to 'src')
| -rw-r--r-- | src/eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 9e54d489a3b..9268b65aa85 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -4296,6 +4296,10 @@ See also the variable `debug-on-quit' and `inhibit-debugger'. */); | |||
| 4296 | Each element may be a condition-name or a regexp that matches error messages. | 4296 | Each element may be a condition-name or a regexp that matches error messages. |
| 4297 | If any element applies to a given error, that error skips the debugger | 4297 | If any element applies to a given error, that error skips the debugger |
| 4298 | and just returns to top level. | 4298 | and just returns to top level. |
| 4299 | If you invoke Emacs with --debug-init, and want to remove some | ||
| 4300 | elements from the default value of this variable, use `setq' to | ||
| 4301 | change the value of the variable to a new list, rather than `delq' | ||
| 4302 | to remove some errors from the list. | ||
| 4299 | This overrides the variable `debug-on-error'. | 4303 | This overrides the variable `debug-on-error'. |
| 4300 | It does not apply to errors handled by `condition-case'. */); | 4304 | It does not apply to errors handled by `condition-case'. */); |
| 4301 | Vdebug_ignored_errors = Qnil; | 4305 | Vdebug_ignored_errors = Qnil; |