Variable: max-lisp-eval-depth

max-lisp-eval-depth is a customizable variable defined in eval.c.

Value

1600

Documentation

Limit on depth in eval, apply and funcall before error.

This limit serves to catch infinite recursions for you before they cause actual stack overflow in C, which would be fatal for Emacs. You can safely make it considerably larger than its default value, if that proves inconveniently small. However, if you increase it too far, Emacs could overflow the real C stack, and crash.

View in manual

Probably introduced at or before Emacs version 15.

Source Code

// Defined in /usr/src/emacs/src/eval.c
  DEFVAR_INT ("max-lisp-eval-depth", max_lisp_eval_depth,
	      doc: /* Limit on depth in `eval', `apply' and `funcall' before error.

This limit serves to catch infinite recursions for you before they cause
actual stack overflow in C, which would be fatal for Emacs.
You can safely make it considerably larger than its default value,
if that proves inconveniently small.  However, if you increase it too far,
Emacs could overflow the real C stack, and crash.  */);