emacs/doc
Stefan Monnier c89b234405 eval.c: Add new var lisp-eval-depth-reserve
Rather than blindly increase `max-lisp-eval-depth` when entering the
debugger or running `signal-hook-function`, use this new "reserve"
to keep track of how much we have grown the stack for "debugger"
purposes so that for example recursive calls to `signal-hook-function`
can't eat up the whole C stack.

* src/eval.c (max_ensure_room): Rewrite.
(restore_stack_limits): Move before `max_ensure_room`.  Rewrite.
(call_debugger, signal_or_quit): Adjust calls accordingly.
Also grow `max-lisp-eval-depth` for `hander-bind` handlers.
(init_eval_once): Don't initialize `max_lisp_eval_depth` here.
(syms_of_eval): Initialize it here instead.
Add new var `lisp-eval-depth-reserve`.

* doc/lispref/eval.texi (Eval): Add `lisp-eval-depth-reserve`.
2023-12-28 01:16:37 -05:00
..
emacs ; Improve and correct documentation of registers (bug#66394) 2023-12-23 12:46:55 +02:00
lispintro Add explanation for extra parentheses in ELisp Introduction 2023-12-23 11:35:33 +02:00
lispref eval.c: Add new var lisp-eval-depth-reserve 2023-12-28 01:16:37 -05:00
man Merge from origin/emacs-29 2023-12-23 06:30:40 -05:00
misc ; * doc/misc/eglot.texi (Performance): Fix a typo. 2023-12-27 18:42:41 +02:00