From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Tue, 31 Mar 2015 08:29:12 -0400 Message-ID: References: <87619h8s5m.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427804981 20952 80.91.229.3 (31 Mar 2015 12:29:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 12:29:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 31 14:29:32 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 1YcvIR-0007Si-11 for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 14:29:31 +0200 Original-Received: from localhost ([::1]:38488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvIQ-00065E-58 for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 08:29:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvID-000659-LS for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:29:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcvI9-0001Gj-S5 for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:29:17 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:58447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvI9-0001Gb-OM for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:29:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3tpCQMDgz4Dg3AEqDs X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3tpCQMDgz4Dg3AEqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115037815" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Mar 2015 08:29:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 60D7A9FB; Tue, 31 Mar 2015 08:29:12 -0400 (EDT) In-Reply-To: <87619h8s5m.fsf@gmail.com> (Thierry Volpiatto's message of "Tue, 31 Mar 2015 10:53:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:184610 Archived-At: >> Stefan kindly explains why it can't just be done before loading the init file: >>> [...] the user may need/want to run some Elisp >>> code of his own choosing *before* package-initialize is called. >>> E.g. [...] set package-load-list and package-directory-list > Why not adding a set function to these vars calling > `package-initialize', so if one set these functions AFTER a > `package-initialize' call `package-initialize' will be called again. > Of course these vars have to be set with customize, not setq. The default of package-load-list is to enable everything, so the main use for package-load-list is to *prevent* initialization of some packages. IOW, the "setter" would have to *undo* some initializations, which is can't be done reliably. Stefan