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: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: package--builtin-versions
Date: Sat, 23 May 2015 17:32:16 +0100	[thread overview]
Message-ID: <CAAdUY-LK9s4VcaZOtZEfD_oKKRjPT5kmrVoVKBKfBw7cGcNw1A@mail.gmail.com> (raw)
In-Reply-To: <jwvd21tjswc.fsf-monnier+emacs@gnu.org>

2015-05-22 2:41 GMT+01:00 Stefan Monnier <monnier@iro.umontreal.ca>:
>> 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

Thanks for the explanation, Stefan.
Sounds like moving it into package.el would cause more problems than it solves.



      reply	other threads:[~2015-05-23 16:32 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 ` package--builtin-versions Stefan Monnier
2015-05-23 16:32   ` Artur Malabarba [this message]

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-LK9s4VcaZOtZEfD_oKKRjPT5kmrVoVKBKfBw7cGcNw1A@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.