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: Re: Calling (package-initialize) sooner during initialization Date: Mon, 13 Apr 2015 23:49:19 +0100 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c364a6a756d30513a2ec3d X-Trace: ger.gmane.org 1428965371 28265 80.91.229.3 (13 Apr 2015 22:49:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 22:49:31 +0000 (UTC) Cc: Vasilij Schneidermann , Stefan Monnier , emacs-devel To: =?UTF-8?Q?Jorgen_Sch=C3=A4fer?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 14 00:49:30 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 1YhnAU-0001mF-Tl for ged-emacs-devel@m.gmane.org; Tue, 14 Apr 2015 00:49:27 +0200 Original-Received: from localhost ([::1]:53655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhnAT-0006K4-J8 for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 18:49:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhnAP-0006Jz-L1 for emacs-devel@gnu.org; Mon, 13 Apr 2015 18:49:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhnAO-0004qU-Oq for emacs-devel@gnu.org; Mon, 13 Apr 2015 18:49:21 -0400 Original-Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:33537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhnAO-0004qQ-H2 for emacs-devel@gnu.org; Mon, 13 Apr 2015 18:49:20 -0400 Original-Received: by lbbzk7 with SMTP id zk7so71098102lbb.0 for ; Mon, 13 Apr 2015 15:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=2tkHmHIhjpc+N6w/z7HTaBKlpSs81xR7Wq/uQjo4l58=; b=tgG97vD9D5Uxeqa4HDlYsrQB7Y+mAtJTvw5xORJay62kdIHDuUQxsdn1Mnk03HRLg5 R4vTVKfy8UHEMAR63Skc8dzDLs4GBlyzTy6r6PBTQuKYh9YyrJ4wyUahWNkWE6xR7N7R 5d3ASPZCidQg4KhDR51chptBXq736rg5vUJmew3imLYK3uUOjC9ObHnZcBcN8reK/HIr pCAqT57USFTgkO5O8DixpcCSRpwdFKNz5rmB72YYfY846827dvsCK3CwR43YWezNAtEA KxEwcUOoxEmNcr5WvKqwddcF++GMndj+4yV+Lb9wmv3kLxtnrTZUM482aj6BEd6ivdl0 z4ew== X-Received: by 10.152.87.204 with SMTP id ba12mr15641533lab.35.1428965359571; Mon, 13 Apr 2015 15:49:19 -0700 (PDT) Original-Received: by 10.25.150.131 with HTTP; Mon, 13 Apr 2015 15:49:19 -0700 (PDT) Original-Received: by 10.25.150.131 with HTTP; Mon, 13 Apr 2015 15:49:19 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: nwvPfnvTsAlb2hwQgxUlmnncHos X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::235 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:185391 Archived-At: --001a11c364a6a756d30513a2ec3d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Apr 12, 2015 10:02 PM, "Jorgen Sch=C3=A4fer" > (dolist (dir (directory-files "~/.emacs.d/elpa" t "\\`[^.]")) > (when (file-directory-p dir) > (add-to-list 'load-path dir) > (dolist (autoload (directory-files dir t "-autoloads.el\\'")) > (load autoload nil t)))) > > This would solve the problem of users being confused because their > init file can not access packages they installed, allow all the heavy > package initialization to happen after the init file is processed, Slightly off topic, but I'm curious to know how heavy that snippet is. I always thought that loading the autoload files corresponded to most of the legwork in package-initialize. But I may well be wrong. --001a11c364a6a756d30513a2ec3d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Apr 12, 2015 10:02 PM, "Jorgen Sch=C3=A4fer"
> (dolist (dir (directory-files "~/.emacs.d/elpa" t "\\`[= ^.]"))
> =C2=A0 (when (file-directory-p dir)
> =C2=A0 =C2=A0 (add-to-list 'load-path dir)
> =C2=A0 =C2=A0 (dolist (autoload (directory-files dir t "-autoload= s.el\\'"))
> =C2=A0 =C2=A0 =C2=A0 (load autoload nil t))))
>
> This would solve the problem of users being confused because their
> init file can not access packages they installed, allow all the heavy<= br> > package initialization to happen after the init file is processed,

Slightly off topic, but I'm curious to know how heavy th= at snippet is. I always thought that loading the autoload files corresponde= d to most of the legwork in package-initialize. But I may well be wrong. --001a11c364a6a756d30513a2ec3d--