From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aneesh Kumar K.V" Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Sun, 12 Apr 2015 20:10:45 +0530 Message-ID: <87sic5csuq.fsf@linux.vnet.ibm.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428853906 20679 80.91.229.3 (12 Apr 2015 15:51:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2015 15:51:46 +0000 (UTC) To: Jorgen =?utf-8?Q?Sch=C3=A4fer?= , v.schneidermann@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 12 17:51:33 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 1YhKAV-00019C-Af for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 17:51:31 +0200 Original-Received: from localhost ([::1]:45629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhKAT-0004f4-SU for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 11:51:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhJ4H-0004pf-Kd for emacs-devel@gnu.org; Sun, 12 Apr 2015 10:41:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhJ4E-0000fo-EV for emacs-devel@gnu.org; Sun, 12 Apr 2015 10:41:01 -0400 Original-Received: from e28smtp01.in.ibm.com ([122.248.162.1]:59753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhJ4D-0000eX-PR for emacs-devel@gnu.org; Sun, 12 Apr 2015 10:40:58 -0400 Original-Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 12 Apr 2015 20:10:51 +0530 Original-Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp01.in.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 12 Apr 2015 20:10:48 +0530 Original-Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 917C81258044 for ; Sun, 12 Apr 2015 20:12:38 +0530 (IST) Original-Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3CEeler33226966 for ; Sun, 12 Apr 2015 20:10:48 +0530 Original-Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3CEeltm024024 for ; Sun, 12 Apr 2015 20:10:47 +0530 Original-Received: from skywalker.linux.vnet.ibm.com ([9.79.189.155]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t3CEeknc023987 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Sun, 12 Apr 2015 20:10:47 +0530 In-Reply-To: User-Agent: Notmuch/0.19+30~gd241a48 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041214-4790-0000-0000-00000784AC4D X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 122.248.162.1 X-Mailman-Approved-At: Sun, 12 Apr 2015 11:51:25 -0400 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:185344 Archived-At: Jorgen Sch=C3=A4fer writes: > Hello. > I think a major part of the problem here is that package-initialize does > a lot more things than it needs to. All that has to happen before the > user init file is loaded is to load the autoload files from ~/.emacs.d/el= pa/. > Everything else can happen on demand or after the init file is loaded, > because it is not necessary to make packages available. > > If package.el provided some sort of (package-load-directory DIR), and > ran that on ~/.emacs.d/elpa/, that should fix most use cases already: > I ran into an issue with using package.el along with use-package.el. I had most of the packages installed via package.el . One of the main benefit of using elpa is the easy upgrade of packages that elpa offers. So it would be nice to have a facility that enables to add all the installed packages to the load-path so that a (require 'use-package) can work. This enables us to delay the package initialization of elpa packages using use-package,which in-turn helps the emacs startup time. -aneesh