1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Fix recursive load when 'calc-always-load-extensions' is set

* lisp/calc/calc.el (calc-create-buffer): Call 'calc-load-everything'.
(calc-always-load-extensions): Delete erroneous stanza.  (Bug#79157)
This commit is contained in:
Sean Devlin 2025-08-02 10:51:18 -05:00 committed by Eli Zaretskii
parent aa60f16e66
commit b85f9d6a97

View file

@ -1468,7 +1468,8 @@ commands given here will actually operate on the *Calculator* stack."
(calc-mode))
(setq max-lisp-eval-depth (max max-lisp-eval-depth 1000))
(when calc-always-load-extensions
(require 'calc-ext))
(require 'calc-ext)
(calc-load-everything))
(when calc-language
(require 'calc-ext)
(calc-set-language calc-language calc-language-option t)))
@ -3522,11 +3523,6 @@ See Info node `(calc)Defining Functions'."
(defcalcmodevar math-half-2-word-size 2147483648
"One-half of two to the power of `calc-word-size'.")
(when calc-always-load-extensions
(require 'calc-ext)
(calc-load-everything))
(run-hooks 'calc-load-hook)
(provide 'calc)