emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/flx ed11b39577 178/182: No longer bind obsolete max-specpd


From: ELPA Syncer
Subject: [nongnu] elpa/flx ed11b39577 178/182: No longer bind obsolete max-specpdl-size
Date: Tue, 13 Dec 2022 03:59:41 -0500 (EST)

branch: elpa/flx
commit ed11b395773ca25e6fb152af782e6923d66f6603
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    No longer bind obsolete max-specpdl-size
    
    It is obsolete since Emacs 29 and its docstring suggests binding
    `max-lisp-eval-depth' instead (which we already do):
    
    > Former limit on specbindings, now without effect.
    > This variable used to limit the size of the specpdl stack which,
    > among other things, holds dynamic variable bindings and `unwind-protect'
    > activations.  To prevent runaway recursion, use `max-lisp-eval-depth'
    > instead; it will indirectly limit the specpdl stack size as well.
    
    To play it safe, we could instead wrap the use of the obsolete variable
    with (with-suppressed-warnings ((obsolete max-specpdl-size)) ...).
---
 flx.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/flx.el b/flx.el
index eb2522928c..e49a100371 100644
--- a/flx.el
+++ b/flx.el
@@ -362,7 +362,6 @@ For other parameters, see `flx-score'"
 
          ;; Raise recursion limit
          (max-lisp-eval-depth 5000)
-         (max-specpdl-size 10000)
 
          ;; Dynamic Programming table for memoizing flx-find-best-match
          (match-cache (make-hash-table :test 'eql :size 10))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]