diff options
| author | Mattias EngdegÄrd | 2020-01-01 16:35:54 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-01-01 16:43:58 +0100 |
| commit | bb9402e6e9c12938aee31b81e25511eb1f6335d2 (patch) | |
| tree | 530bc0f3049d8fb75c55d663d55599d669c20afa | |
| parent | 4011b179ffe88a0afb3b73dd1af6a75dc0c2c772 (diff) | |
| download | emacs-bb9402e6e9c12938aee31b81e25511eb1f6335d2.tar.gz emacs-bb9402e6e9c12938aee31b81e25511eb1f6335d2.zip | |
Raise default max-specpdl-size value
Occasionally, loading cl-generic.el from source requires
max_specpdl_size > 1600 when bootstrapping, and thus fails.
In any case we are very close to the limit.
* src/eval.c (init_eval_once): Raise max_specpdl_size to 1800.
* doc/lispref/variables.texi (Local Variables): Update docs.
| -rw-r--r-- | doc/lispref/variables.texi | 2 | ||||
| -rw-r--r-- | src/eval.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 1ec97e2f3de..568eb0f7836 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -322,7 +322,7 @@ that Lisp avoids infinite recursion on an ill-defined function. | |||
| 322 | @code{max-lisp-eval-depth} provides another limit on depth of nesting. | 322 | @code{max-lisp-eval-depth} provides another limit on depth of nesting. |
| 323 | @xref{Definition of max-lisp-eval-depth,, Eval}. | 323 | @xref{Definition of max-lisp-eval-depth,, Eval}. |
| 324 | 324 | ||
| 325 | The default value is 1600. Entry to the Lisp debugger increases the | 325 | The default value is 1800. Entry to the Lisp debugger increases the |
| 326 | value, if there is little room left, to make sure the debugger itself | 326 | value, if there is little room left, to make sure the debugger itself |
| 327 | has room to execute. | 327 | has room to execute. |
| 328 | @end defopt | 328 | @end defopt |
diff --git a/src/eval.c b/src/eval.c index 4559a0e1f66..d1f74751446 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -219,7 +219,7 @@ void | |||
| 219 | init_eval_once (void) | 219 | init_eval_once (void) |
| 220 | { | 220 | { |
| 221 | /* Don't forget to update docs (lispref node "Local Variables"). */ | 221 | /* Don't forget to update docs (lispref node "Local Variables"). */ |
| 222 | max_specpdl_size = 1600; /* 1500 is not enough for cl-generic.el. */ | 222 | max_specpdl_size = 1800; /* 1600 is not enough for cl-generic.el. */ |
| 223 | max_lisp_eval_depth = 800; | 223 | max_lisp_eval_depth = 800; |
| 224 | Vrun_hooks = Qnil; | 224 | Vrun_hooks = Qnil; |
| 225 | pdumper_do_now_and_after_load (init_eval_once_for_pdumper); | 225 | pdumper_do_now_and_after_load (init_eval_once_for_pdumper); |