1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 20:50:52 -08:00
emacs/doc
Stefan Monnier 02edbc88a1 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`.
2024-01-04 16:36:22 -05:00
..
emacs ; Fix documentation of last change 2024-01-04 20:47:06 +02:00
lang/fr/misc ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
lispintro ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lispref eval.c: Add new var lisp-eval-depth-reserve 2024-01-04 16:36:22 -05:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00