Subject: Re: bug#59426: 29.0.50; [tree-sitter] Some functions exceed maximum recursion limit

From: Mattias Engdegård <[email-masked]>
Date: Tue, 22 Nov 2022 09:59:00 +0100

22 nov. 2022 kl. 01.27 skrev Po Lu <[email-masked]>:

> When the use is not reasonable (as C files with thousands of nested
> brackets clearly are not), max-specpdl-size can prevent Emacs from
> crashing.

No, that variable is gone.

Using lisp_eval_depth is possible (and used by json for a similar purpose) but an independent limit seems safer, since Lisp evaluation does not necessarily use the C stack.