GNU bug report logs - #57911
Abolish max-specpdl-size

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Sun, 18 Sep 2022 14:57:01 UTC

Severity: normal

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: 57911 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: bug#57911: Abolish max-specpdl-size
Date: Mon, 19 Sep 2022 08:27:35 -0400
Mattias Engdegård [2022-09-19 11:35:24] wrote:
> diff --git a/lisp/subr.el b/lisp/subr.el
> index d7cdc28abb..0e8cb2fcd6 100644
> --- a/lisp/subr.el
> +++ b/lisp/subr.el
> @@ -376,6 +376,13 @@ ignore-error
>  
>  ;;;; Basic Lisp functions.
>  
> +(defvar max-specpdl-size 2500
> +  "Former limit on specbindings, now without effect.
> +This variable used to limit the size of the specpdl stack which,
> +among other things, held dynamic variable bindings and `unwind-protect'
> +activations.  To prevent runaway recursion, use `max-lisp-eval-lisp-depth'
> +instead; it will indirectly limit the specpdl stack size as well.")
> +
>  (defvar gensym-counter 0
>    "Number used to construct the name of the next symbol created by `gensym'.")

Please mark it as obsolete as well.


        Stefan





This bug report was last modified 2 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.