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 #23 received at 78637 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Aaron Zeng <azeng <at> janestreet.com>
Cc: 78637 <at> debbugs.gnu.org, app-emacs-dev <at> janestreet.com
Subject: Re: bug#78637: 30.1.90; Calling setopt during init loads cus-start
 over and over
Date: Sat, 31 May 2025 11:17:04 -0400
> While trying to improve Emacs startup time at my site, I noticed that
> cus-start was being loaded repeatedly, each time setopt was called.

I don't see this, but I do see `cus-start` being (re)loaded when the
first `setopt` is executed.

This comes from the weird conditional below:

    (unless dump-mode
      (provide 'cus-start))

This dates back to

    commit 4883633e7b4416a0da1a63bc7fd0c4081bdc7837
    Author: Richard M. Stallman <rms <at> gnu.org>
    Date:   Sat May 31 00:54:10 1997 +0000
    
        Arrange to load it once during dumping,
        and again if needed by cus-edit.el.
        (custom-start-quote): Don't define as separate function.
        (load-path): Improve the :type.
        (delete-exited-processes): Fix group to processes-basics.

I have no idea why, but it's not a new problem.

Maybe the repeated-loading you're seeing is due to `dump-mode` being
non-nil in your Emacs build?  If that's the case, do you have any idea
why that would be the case (it's rather unusual).


        Stefan





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.