From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: package.el should be preloaded Date: Sat, 30 Oct 2010 20:09:48 -0400 Message-ID: <87iq0j2pf7.fsf@stupidchicken.com> References: <8htyk6zrvp.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288552940 9899 80.91.229.12 (31 Oct 2010 19:22:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 19:22:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 31 20:22:15 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCdTp-0005zq-3R for ged-emacs-devel@m.gmane.org; Sun, 31 Oct 2010 20:22:13 +0100 Original-Received: from localhost ([127.0.0.1]:39227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCdTo-0003G4-Fv for ged-emacs-devel@m.gmane.org; Sun, 31 Oct 2010 15:22:12 -0400 Original-Received: from [140.186.70.92] (port=59014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCdTd-0003FF-Lk for emacs-devel@gnu.org; Sun, 31 Oct 2010 15:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCdTY-0003RC-Ds for emacs-devel@gnu.org; Sun, 31 Oct 2010 15:22:01 -0400 Original-Received: from relay.wanderingwifi.com ([205.139.50.171]:41157) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PCdTY-0003Qu-BN; Sun, 31 Oct 2010 15:21:56 -0400 Original-Received: from furball (ip-216-36-86-218.iad.megapath.net [216.36.86.218]) by relay.wanderingwifi.com (Spam Firewall) with ESMTP id A4D51B6B811; Sun, 31 Oct 2010 15:21:51 -0400 (EDT) Original-Received: by furball (Postfix, from userid 1000) id 6043916102F; Sat, 30 Oct 2010 20:09:48 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Thu, 28 Oct 2010 10:24:54 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: by Barracuda Spam Firewall at wanderingwifi.com X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132222 Archived-At: Stefan Monnier writes: >> This was briefly mentioned before > >> http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00634.html > >> But it is loaded in every normal startup, whether or not I have any >> packages installed. Surely it is impossible to tell if I have any >> packages to load without loading package.el to search for them; so I >> don't see any reason not to preload it. > > I agree we should preload it. But we should do it by splitting the part > that need to be preloaded into package-hooks.el. I looked into this, but it turns out that most of package.el would need to be preloaded. Instead, I tweaked the code startup.el to check more aggressively for local package directories, so that package.el won't be loaded if no packages are installed.