From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: package--builtin-versions Date: Thu, 21 May 2015 23:13:19 +0100 Message-ID: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1432246434 25648 80.91.229.3 (21 May 2015 22:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 22:13:54 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 22 00:13:54 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YvYiS-0001lw-MI for ged-emacs-devel@m.gmane.org; Fri, 22 May 2015 00:13:24 +0200 Original-Received: from localhost ([::1]:59678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvYiR-0005cI-MB for ged-emacs-devel@m.gmane.org; Thu, 21 May 2015 18:13:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvYiP-0005cD-0M for emacs-devel@gnu.org; Thu, 21 May 2015 18:13:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvYiO-0004HO-8M for emacs-devel@gnu.org; Thu, 21 May 2015 18:13:20 -0400 Original-Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:32797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvYiO-0004Gz-13 for emacs-devel@gnu.org; Thu, 21 May 2015 18:13:20 -0400 Original-Received: by lbbzk7 with SMTP id zk7so635153lbb.0 for ; Thu, 21 May 2015 15:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=kuiEuk3IhPQVnfFG5TgQa53vERmmcabAaoXRCnAdb6U=; b=ac5iPnknoGJWUuN1Q+rSKJ4Qh1OKSpRE0MFpuQHgT9nOx/8jvx6PUogXR9t8Wg4w6v Pek896wwoNr2akcU4FKWqy0bL1gdHjETL5Q5s9C/b4iuTYs0Lm3Eu75xStpb36lkpPbw IvLmJG1qsso2xI2nXjYaYx0FNfdmyvjt+zrrHXnSpAb6T7/TaLH+zQ1+O9QmoqL8D1UE sS8mJ7r3ULqhmUfhr+ZVsgDmkkO/I6rsbzCVT+taZpEH1mhzlBdAu9kaZqFBzEFHsonI Li8pm2GbEBlPk5fVuZP4ipAeXajdyaD4Yxqg+j+uXoQctA0MfAUdEiN493nI8NmFCD6V +iKw== X-Received: by 10.152.7.239 with SMTP id m15mr3794782laa.95.1432246399370; Thu, 21 May 2015 15:13:19 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Thu, 21 May 2015 15:13:19 -0700 (PDT) X-Google-Sender-Auth: qr1R1_KKmUDuawXM1rAyphXtWmw X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186727 Archived-At: 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,