GNU bug report logs - #78637
30.1.90; Calling setopt during init loads cus-start over and over

Previous Next

Package: emacs;

Reported by: Aaron Zeng <azeng <at> janestreet.com>

Date: Thu, 29 May 2025 20:58:02 UTC

Severity: normal

Found in version 30.1.90

Full log


Message #17 received at 78637 <at> debbugs.gnu.org (full text, mbox):

From: Aaron Zeng <azeng <at> janestreet.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78637 <at> debbugs.gnu.org, app-emacs-dev <at> janestreet.com,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#78637: 30.1.90; Calling setopt during init loads cus-start
 over and over
Date: Fri, 30 May 2025 13:09:12 -0400
On Fri, May 30, 2025 at 12:11 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>   . for some reason, 'require' doesn't avoid loading cus-start even if
>     it is already loaded; the simple patch below reduces the number of
>     loads of cus-start to just 1 in this scenario

Maybe I am misunderstanding, but I think this is deliberate.  cus-start.el
does not provide the 'cus-start' feature when Emacs is dumping.

> Further, that single load of cus-start that is left is also strange:
> it comes from cus-load, and stepping with a debugger into Frequire, I
> see that cus-start is not in the Vfeatures list?  Why?

If I understand correctly, this is because loading cus-start signals an error,
and therefore the (provide 'cus-start) line is never executed and the feature
never gets added to the list.

> Here's the patch which reduces the number of loads to 1 (and which I
> hoped will reduce it to zero):

I don't think this patch worked on my machine.  I still see that
cus-start is loaded
once each time setopt runs, when setting force-load-messages to t.




This bug report was last modified 13 days ago.

Previous Next


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