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: Tue, 31 Mar 2015 15:56:56 +0100 Message-ID: References: <87619h8s5m.fsf@gmail.com> <87d23pb8ye.fsf@gmail.com> <87a8ytb7nl.fsf@gmail.com> <87d23pxo0d.fsf@gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1427813870 15732 80.91.229.3 (31 Mar 2015 14:57:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 14:57:50 +0000 (UTC) Cc: emacs-devel To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 31 16:57:49 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 1Ycxbp-0004zB-Hd for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 16:57:41 +0200 Original-Received: from localhost ([::1]:39111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycxbo-0007ZO-P5 for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 10:57:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcxbA-00071R-2x for emacs-devel@gnu.org; Tue, 31 Mar 2015 10:57:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycxb9-00050Y-BN for emacs-devel@gnu.org; Tue, 31 Mar 2015 10:57:00 -0400 Original-Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:36431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycxb8-000507-Na for emacs-devel@gnu.org; Tue, 31 Mar 2015 10:56:59 -0400 Original-Received: by lbbug6 with SMTP id ug6so14434213lbb.3 for ; Tue, 31 Mar 2015 07:56:56 -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=6E2Bjz++zTv7HDO97bTI0lAFFRigGK98ZGeZ33VTq4A=; b=xq4WM3vxjhVzmdNkOWtH2b9t1GsJbJNd5nu4gBiF9pC3rlaIfmAqG+eN1u77tj1b3p 4F1QJzV01xA1leqDp+xeDnZhyOloXLk0EV4Bb3mpBuOfJP/esw0GssepZeoB4KVhQhUw zS3ht06u9qyyKLrBKDAZ24BjsIOaAifTHsMX2Tl6uYFUAlbRBYashLQE5IPFmFQJDco6 6xmQstTcm8SLhBUI45cp0T5CSfUdgHXo56+D3SgzcokdtiVVlPlC6ovbX/kn/3XWAqsw N0cRp3tithed17ieKIZB4gzDEz1e456xmKiGtW1QD70L2UW9UKdvfvaeMrb6l7z5C1hD tJzA== X-Received: by 10.152.198.8 with SMTP id iy8mr31522258lac.13.1427813816714; Tue, 31 Mar 2015 07:56:56 -0700 (PDT) Original-Received: by 10.112.207.225 with HTTP; Tue, 31 Mar 2015 07:56:56 -0700 (PDT) In-Reply-To: <87d23pxo0d.fsf@gmail.com> X-Google-Sender-Auth: B_BeQB8RKiKVcZsXtWrKyEB0KWU 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:184645 Archived-At: >> Maybe `package-load-list' should have a nil default value instead of all >> and once package-initialize run, it could set it to 'all if it don't >> find a customized value. >> This with not help the real time setting of this var (no way to unload), >> but may solve the problem at startup. > > Seems it is working fine with this: > > 1) default value of package-load-list => nil > 2) customize yourself package-load-list e.g => ' (all) > 3) Add at beginning of package-initialize someting like: > (unless package-load-list > (setq package-load-list '(all))) > > When starting emacs the value of package-load-list before calling > package-initialize is '(all). I don't understand how this will solve the "package-initialize is called too late" issue. People who try to configure a package in their init file will still run into errors until "(package-initialize)" is called.