From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: email@johnmuhl.mx, emacs-devel@gnu.org, luangruo@yahoo.com,
schwab@linux-m68k.org, Lars Ingebrigtsen <larsi@gnus.org>,
Eli Zaretskii <eliz@gnu.org>
Subject: secondary loaddefs [was Re: Bootstrap broken betweeen ...]
Date: Sun, 19 Dec 2021 12:16:42 -0500 [thread overview]
Message-ID: <kmwnk0sef9.fsf_-_@fencepost.gnu.org> (raw)
In-Reply-To: <jwv7dc0bkxo.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 19 Dec 2021 11:53:19 -0500")
Stefan Monnier wrote:
>> Yes, I think that sounds like a good idea -- I have no idea why rmail
>> has its own loaddefs in the first place.
>
> Usually it's done for autoloads that are only used internally to
> a package so as to reduce the number of "useless" autoloads in
> loaddefs.el (and along with it, the size of Emacs's pdump heap).
>
> Looking at `rmail-loaddefs.el` I suspect there's a good chance that the
> problem can be fixed by adding the `noerror` to `require` so it doesn't
> signal an error when `rmail-loaddefs.el` is not found. This will still
> work fine since those autoloads seem to all be for interactive commands
> which will only ever be used once an rmail buffer has been displayed to
> the user, i.e. long after we're done compiling Emacs.
Indeed. I wish people would give others a chance to explain before
changing things.
This arrangement isn't specific to rmail, and is used by eg calc,
ibuffer, dired, for many years.
Some history:
Originally such autoloads were hand-written. This is inefficient; eg
you don't get the doc-strings unless you manually copy them to the
autoload, and then you have two places to keep in sync.
Then the feature of allowing a file to specify a local
generated-autoload-file was added. At first this was used to
automatically add the autoloads into (eg) rmail.el in place of the
handwritten ones. update_autogen could automatically update these blocks.
However, people did not like this approach, because they would
sometimes see local modifications (different hashes) in versioned
files like rmail.el after building. So it was changed to have the
autoloads in a separate file that was not versioned, eg rmail-loaddefs.el.
next prev parent reply other threads:[~2021-12-19 17:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-16 23:47 Bootstrap broken between 2893cb6a21af3384cf5d6dc2b6bbdd5ebba8e1ad and 469fe6a040d6df612c00ea169670c6d8d7e58563 Andreas Schwab
2021-12-16 23:54 ` john muhl
2021-12-17 6:48 ` Lars Ingebrigtsen
2021-12-17 7:07 ` Po Lu
2021-12-17 7:20 ` Lars Ingebrigtsen
2021-12-17 8:04 ` Lars Ingebrigtsen
2021-12-17 12:15 ` Eli Zaretskii
2021-12-18 7:34 ` Lars Ingebrigtsen
2021-12-18 9:27 ` Eli Zaretskii
2021-12-19 10:38 ` Lars Ingebrigtsen
2021-12-19 16:52 ` Eli Zaretskii
2021-12-19 16:53 ` Stefan Monnier
2021-12-19 17:09 ` Eli Zaretskii
2021-12-19 17:14 ` Stefan Kangas
2021-12-19 17:16 ` Glenn Morris [this message]
2021-12-20 4:43 ` Richard Stallman
2021-12-17 12:42 ` Stefan Monnier
2021-12-18 7:29 ` Lars Ingebrigtsen
2021-12-18 16:28 ` Stefan Monnier
2021-12-19 10:52 ` Lars Ingebrigtsen
2021-12-17 7:16 ` Kévin Le Gouguec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kmwnk0sef9.fsf_-_@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=email@johnmuhl.mx \
--cc=larsi@gnus.org \
--cc=luangruo@yahoo.com \
--cc=monnier@iro.umontreal.ca \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).