all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: package--builtin-versions
Date: Thu, 21 May 2015 23:13:19 +0100	[thread overview]
Message-ID: <CAAdUY-+4oLaG006a9byH0-Bw4NgiArnYP0ZHg1TRDYX-qXxqfA@mail.gmail.com> (raw)

I stumbled into this odd little variable the other day, and I was
wondering why it's designed the way it is.

AFAIKT, the `package--builtin-versions' variable is only used by
`package.el', but it's defined in `subr.el', and it's populated in
`loaddefs.el' which is generated by `autoload.el'.
Is this for performance reasons?

I always assumed it was like this because of some complex
interdependency, but I've been grep'ing and I can't find this variable
being used anywhere outside package.el.
I'm wondering if this can be simplified to go entirely in package.el.
Something like:

  (defvar package--builtin-versions
    (eval-when-compile
      (go-thtough-builtin-packages-and-accumulate-autoloads)))

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'.

Cheers,



             reply	other threads:[~2015-05-21 22:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 22:13 Artur Malabarba [this message]
2015-05-22  1:41 ` package--builtin-versions Stefan Monnier
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=CAAdUY-+4oLaG006a9byH0-Bw4NgiArnYP0ZHg1TRDYX-qXxqfA@mail.gmail.com \
    --to=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.