Subject: Re: [PATCH] Fix recursive load when 'calc-always-load-extensions' is set

From: Sean Devlin <[email-masked]>
Date: Sat, 2 Aug 2025 11:47:35 -0500

> On Aug 2, 2025, at 11:31 AM, Sean Devlin <[email-masked]> wrote:
> 
> Hi folks,
> 
> The Calc setting calc-always-load-extensions leads to a recursive load
> error if you set it in your init file before loading calc.el. (If you set it after
> loading calc.el, e.g. via calc-settings-file, there is no recursive error, but
> it also doesn’t load the extensions.)
> 

To reproduce the latter issue, i.e. failure to load extensions:

1. Emacs -Q
2. M-x load-library calc RET
3. Evaluate: (setq calc-always-load-extensions t)
4. M-x calc RET
5. Evaluate: (featurep 'calc-aent)

The result will be nil.

Alternately, by using the settings file:

1. mkdir /tmp/emacs-calc
2. HOME=/tmp/emacs-calc emacs
3. M-x calc RET
4. m x
5. m m
6. C-x C-c
7. Repeat steps 2 and 3
8. Evaluate: (featurep 'calc-aent)

The result will be nil.