From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Artur Malabarba <bruce.connor.am@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: package--builtin-versions
Date: Thu, 21 May 2015 21:41:13 -0400 [thread overview]
Message-ID: <jwvd21tjswc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAAdUY-+4oLaG006a9byH0-Bw4NgiArnYP0ZHg1TRDYX-qXxqfA@mail.gmail.com> (Artur Malabarba's message of "Thu, 21 May 2015 23:13:19 +0100")
> I stumbled into this odd little variable the other day, and I was
> wondering why it's designed the way it is.
It was the easy way to get this data uptodate and reasonably cheap.
> (defvar package--builtin-versions
> (eval-when-compile
> (go-thtough-builtin-packages-and-accumulate-autoloads)))
Two problems with that:
1- you need to write go-thtough-builtin-packages-and-accumulate-autoloads,
instead of piggy-backing on autoload.el (which benefits from the
optimization of only looking at the files that were changed, for
example).
2- if package.el doesn't change while some builtin package is
upgraded/added, this var will be out-of-date.
> This should still happen at bootstrap time, so it wouldn't affect
> Emacs startup. In fact, it might help emacs startup a little bit,
> since there would be 76 fewer forms in `loaddefs.el'.
It would be nice to only define package--builtin-versions when we need
it (i.e. when package.el is loaded), but it's not super important:
package--builtin-versions is pretty small and loaddefs.el is preloaded
so its size shouldn't affect Emacs startup.
Stefan
next prev parent reply other threads:[~2015-05-22 1:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 22:13 package--builtin-versions Artur Malabarba
2015-05-22 1:41 ` Stefan Monnier [this message]
2015-05-23 16:32 ` package--builtin-versions Artur Malabarba
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvd21tjswc.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bruce.connor.am@gmail.com \
--cc=emacs-devel@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.