aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-05-22 21:59:46 +0000
committerRichard M. Stallman2004-05-22 21:59:46 +0000
commit0df043a7066c4dd6ef093b83ec04973ace516a91 (patch)
tree2d0551ede0742fd4a2ab290e2a7afb9fc6fc089c
parent76865de3a6158dbf61317766877e49dc25e7ccdf (diff)
downloademacs-0df043a7066c4dd6ef093b83ec04973ace516a91.tar.gz
emacs-0df043a7066c4dd6ef093b83ec04973ace516a91.zip
(Eval): Increasing max-lisp-eval-depth can cause real stack overflow.
-rw-r--r--lispref/eval.texi9
1 files changed, 6 insertions, 3 deletions
diff --git a/lispref/eval.texi b/lispref/eval.texi
index 7d1ebb9d307..3c8a7a5e8a3 100644
--- a/lispref/eval.texi
+++ b/lispref/eval.texi
@@ -678,9 +678,12 @@ output of the output functions is printed in the echo area.
678@defvar max-lisp-eval-depth 678@defvar max-lisp-eval-depth
679This variable defines the maximum depth allowed in calls to @code{eval}, 679This variable defines the maximum depth allowed in calls to @code{eval},
680@code{apply}, and @code{funcall} before an error is signaled (with error 680@code{apply}, and @code{funcall} before an error is signaled (with error
681message @code{"Lisp nesting exceeds max-lisp-eval-depth"}). This limit, 681message @code{"Lisp nesting exceeds max-lisp-eval-depth"}).
682with the associated error when it is exceeded, is one way that Lisp 682
683avoids infinite recursion on an ill-defined function. 683This limit, with the associated error when it is exceeded, is one way
684Emacs Lisp avoids infinite recursion on an ill-defined function. If
685you increase the value of @code{max-lisp-eval-depth} too much, such
686code can cause stack overflow instead.
684@cindex Lisp nesting error 687@cindex Lisp nesting error
685 688
686The depth limit counts internal uses of @code{eval}, @code{apply}, and 689The depth limit counts internal uses of @code{eval}, @code{apply}, and