From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Tue, 31 Mar 2015 15:48:34 +0300 Message-ID: <551A97A2.7060207@yandex.ru> References: <87619h8s5m.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1427806147 7591 80.91.229.3 (31 Mar 2015 12:49:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 12:49:07 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier , Thierry Volpiatto , Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 31 14:49:02 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 1YcvbG-000651-St for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 14:48:59 +0200 Original-Received: from localhost ([::1]:38557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvbG-0002HX-9b for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 08:48:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycvb1-0002HB-60 for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:48:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycvax-0000ei-PL for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:48:43 -0400 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:35511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycvax-0000eQ-Fz for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:48:39 -0400 Original-Received: by wgdm6 with SMTP id m6so17887983wgd.2 for ; Tue, 31 Mar 2015 05:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=x9HgInZDFZtK6vCXRWqEZ3nihVFrlJ5dUcm9pKOH4wM=; b=a05KV2OOXRThkRTWj76Tj+DC1ePZbWOT7WCTo1gAH/SLrftyeDILUyMKRnSM7+S60c hArE3JG0rEZq1JW+qyjKvLuIgiYZtEhXPMoZW+hvByZXa/FWRg+XY1K6xInkBfMQpvVj dmvXyUc2kw7bbPA3+yb6iMbae53b5eoSSRySPNY/aQ5IbrVo13QCPONfUF1vA6/jj7Wj HCqnjkpUdZ8wfPV+aiyi4ZzBBFmcSybkWV5e5jKfKAo4q+ld3y6Bhq+qa+M+RYilUYeO iSObXJFpAk/5wljNYq0KqwaRuVqXY81FkgFyhROR1pTzSDpmzmzPvyBPTPWN0Vo8guse G2gw== X-Received: by 10.180.84.231 with SMTP id c7mr5112112wiz.92.1427806118037; Tue, 31 Mar 2015 05:48:38 -0700 (PDT) Original-Received: from [192.168.1.3] ([82.102.93.54]) by mx.google.com with ESMTPSA id hw7sm20227560wjb.24.2015.03.31.05.48.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 05:48:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a 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:184614 Archived-At: On 03/31/2015 03:29 PM, Stefan Monnier wrote: > 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. Maybe, in the long run, a nicer approach would be to put the `custom-set-variables` form for the ELPA packages into a separate file, and load it after `package-initialize' was called. I realize a variation of this has already been suggested, but this seems quite sane to me. The downside would be that it won't help with existing entries in `custom-file', but if a user currently has package-related entries there, either their Emacs doesn't start, or the user already calls `package-initialize' earlier, or each entry doesn't really depend on respective package having been loaded.