diff options
| author | Gemini Lasswell <gazally@runbox.com> | 2018-06-20 13:58:33 -0700 |
|---|---|---|
| committer | Gemini Lasswell <gazally@runbox.com> | 2018-06-30 07:36:11 -0700 |
| commit | 4bd43b03526ae893609c7b54958fc332a1c81681 (patch) | |
| tree | 9baac307550a99d7b7a9a48442deca5e515c9f0b /src | |
| parent | ab983522a140187fa2f7bd996c6e3760b0db8d09 (diff) | |
| download | emacs-4bd43b03526ae893609c7b54958fc332a1c81681.tar.gz | |
Increase max-lisp-eval-depth adjustment while in debugger (bug#31919)
* src/eval.c (call_debugger): Increase the amount of extra Lisp
evaluation depth given to the debugger to allow it to call cl-print.
* lisp/emacs-lisp/debug.el (debugger-setup-buffer): Add a comment
to suggest updating call_debugger when changing print-level.
Diffstat (limited to 'src')
| -rw-r--r-- | src/eval.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index ca1eb84ff3f..40cba3bb1ce 100644 --- a/src/eval.c +++ b/src/eval.c @@ -282,8 +282,12 @@ call_debugger (Lisp_Object arg) /* Do not allow max_specpdl_size less than actual depth (Bug#16603). */ EMACS_INT old_max = max (max_specpdl_size, count); - if (lisp_eval_depth + 40 > max_lisp_eval_depth) - max_lisp_eval_depth = lisp_eval_depth + 40; + /* The previous value of 40 is too small now that the debugger + prints using cl-prin1 instead of prin1. Printing lists nested 8 + deep (which is the value of print-level used in the debugger) + currently requires 77 additional frames. See bug#31919. */ + if (lisp_eval_depth + 100 > max_lisp_eval_depth) + max_lisp_eval_depth = lisp_eval_depth + 100; /* While debugging Bug#16603, previous value of 100 was found too small to avoid specpdl overflow in the debugger itself. */ |
