aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-08-17 21:35:20 +0300
committerEli Zaretskii2023-08-17 21:35:20 +0300
commit3685387e609753293c4518be75e77c659c3b2d8d (patch)
tree0cc2bf25e73fd20fc279e55bc53207050f41ac89 /src
parent39e0121354c25919c20786782da0c5f1952278a8 (diff)
downloademacs-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.c4
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'. */);
4296Each element may be a condition-name or a regexp that matches error messages. 4296Each element may be a condition-name or a regexp that matches error messages.
4297If any element applies to a given error, that error skips the debugger 4297If any element applies to a given error, that error skips the debugger
4298and just returns to top level. 4298and just returns to top level.
4299If you invoke Emacs with --debug-init, and want to remove some
4300elements from the default value of this variable, use `setq' to
4301change the value of the variable to a new list, rather than `delq'
4302to remove some errors from the list.
4299This overrides the variable `debug-on-error'. 4303This overrides the variable `debug-on-error'.
4300It does not apply to errors handled by `condition-case'. */); 4304It does not apply to errors handled by `condition-case'. */);
4301 Vdebug_ignored_errors = Qnil; 4305 Vdebug_ignored_errors = Qnil;