diff options
| author | Richard M. Stallman | 2004-05-22 21:59:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-05-22 21:59:46 +0000 |
| commit | 0df043a7066c4dd6ef093b83ec04973ace516a91 (patch) | |
| tree | 2d0551ede0742fd4a2ab290e2a7afb9fc6fc089c | |
| parent | 76865de3a6158dbf61317766877e49dc25e7ccdf (diff) | |
| download | emacs-0df043a7066c4dd6ef093b83ec04973ace516a91.tar.gz emacs-0df043a7066c4dd6ef093b83ec04973ace516a91.zip | |
(Eval): Increasing max-lisp-eval-depth can cause real stack overflow.
| -rw-r--r-- | lispref/eval.texi | 9 |
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 |
| 679 | This variable defines the maximum depth allowed in calls to @code{eval}, | 679 | This 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 |
| 681 | message @code{"Lisp nesting exceeds max-lisp-eval-depth"}). This limit, | 681 | message @code{"Lisp nesting exceeds max-lisp-eval-depth"}). |
| 682 | with the associated error when it is exceeded, is one way that Lisp | 682 | |
| 683 | avoids infinite recursion on an ill-defined function. | 683 | This limit, with the associated error when it is exceeded, is one way |
| 684 | Emacs Lisp avoids infinite recursion on an ill-defined function. If | ||
| 685 | you increase the value of @code{max-lisp-eval-depth} too much, such | ||
| 686 | code can cause stack overflow instead. | ||
| 684 | @cindex Lisp nesting error | 687 | @cindex Lisp nesting error |
| 685 | 688 | ||
| 686 | The depth limit counts internal uses of @code{eval}, @code{apply}, and | 689 | The depth limit counts internal uses of @code{eval}, @code{apply}, and |