aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2019-06-16 23:14:51 +0200
committerJuanma Barranquero2019-06-16 23:14:51 +0200
commit4156dd384a1b6d999bdbce30507bfab77e49ab4e (patch)
treeca9623980250c95f540023dc376108f2503bfc27
parent2f97200bb9d006e36417ee401c7f82952d3c84a2 (diff)
downloademacs-4156dd384a1b6d999bdbce30507bfab77e49ab4e.tar.gz
emacs-4156dd384a1b6d999bdbce30507bfab77e49ab4e.zip
Bump up max_specpdl_size to 1500. (Bug#36216)
* src/eval.c (init_eval_once): Set max_specpdl_size to 1500. * doc/lispref/variables.texi (Local Variables): Document it.
-rw-r--r--doc/lispref/variables.texi2
-rw-r--r--src/eval.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 5e1bfbd7145..6e6448ec1e9 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -303,7 +303,7 @@ that Lisp avoids infinite recursion on an ill-defined function.
303@code{max-lisp-eval-depth} provides another limit on depth of nesting. 303@code{max-lisp-eval-depth} provides another limit on depth of nesting.
304@xref{Definition of max-lisp-eval-depth,, Eval}. 304@xref{Definition of max-lisp-eval-depth,, Eval}.
305 305
306The default value is 1300. Entry to the Lisp debugger increases the 306The default value is 1500. Entry to the Lisp debugger increases the
307value, if there is little room left, to make sure the debugger itself 307value, if there is little room left, to make sure the debugger itself
308has room to execute. 308has room to execute.
309@end defopt 309@end defopt
diff --git a/src/eval.c b/src/eval.c
index 5bba8766373..0006123b0af 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -220,7 +220,7 @@ void
220init_eval_once (void) 220init_eval_once (void)
221{ 221{
222 /* Don't forget to update docs (lispref node "Local Variables"). */ 222 /* Don't forget to update docs (lispref node "Local Variables"). */
223 max_specpdl_size = 1300; /* 1000 is not enough for CEDET's c-by.el. */ 223 max_specpdl_size = 1500; /* 1300 is not enough for cl-generic.el. */
224 max_lisp_eval_depth = 800; 224 max_lisp_eval_depth = 800;
225 Vrun_hooks = Qnil; 225 Vrun_hooks = Qnil;
226 pdumper_do_now_and_after_load (init_eval_once_for_pdumper); 226 pdumper_do_now_and_after_load (init_eval_once_for_pdumper);