aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorStefan Monnier2023-12-25 21:41:08 -0500
committerStefan Monnier2023-12-28 01:17:21 -0500
commit26b7078705ae5b9226c99e370740ab9a4063f20f (patch)
tree45f130466b1c6cddf5ae705a49e410979ac183a7 /src/lisp.h
parentb925152bffce30abbd48361af6858cd45b785d84 (diff)
downloademacs-scratch/handler-bind.tar.gz
emacs-scratch/handler-bind.zip
(backtrace-on-redisplay-error): Use `handler-bind`scratch/handler-bind
Reimplement `backtrace-on-redisplay-error` using `push_handler_bind`. This moves the code from `signal_or_quit` to `xdisp.c` and `debug-early.el`. * lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Add `base` arg to strip "internal" frames. (debug--early): New function, extracted from `debug-early`. (debug-early, debug-early--handler): Use it. (debug-early--muted): New function, extracted (translated) from `signal_or_quit`; trim the buffer to a max of 10 backtraces. * src/xdisp.c (funcall_with_backtraces): New function. (dsafe_calln): Use it. (syms_of_xdisp): Defsym `Qdebug_early__muted`. * src/eval.c (redisplay_deep_handler): Delete var. (init_eval, internal_condition_case_n): Don't set it any more. (backtrace_yet): Delete var. (signal_or_quit): Remove special case for `backtrace_on_redisplay_error`. * src/keyboard.c (command_loop_1): Don't set `backtrace_yet` any more. * src/lisp.h (backtrace_yet): Don't declare.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h
index db6c3e32be7..c051c35e169 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4529,7 +4529,6 @@ extern Lisp_Object Vrun_hooks;
4529extern Lisp_Object Vsignaling_function; 4529extern Lisp_Object Vsignaling_function;
4530extern Lisp_Object inhibit_lisp_code; 4530extern Lisp_Object inhibit_lisp_code;
4531extern bool signal_quit_p (Lisp_Object); 4531extern bool signal_quit_p (Lisp_Object);
4532extern bool backtrace_yet;
4533 4532
4534/* To run a normal hook, use the appropriate function from the list below. 4533/* To run a normal hook, use the appropriate function from the list below.
4535 The calling convention: 4534 The calling convention: