From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fixing package-initialize, adding early init file Date: Sun, 18 Feb 2018 22:10:24 -0500 Message-ID: References: <83po9vos4z.fsf@gnu.org> <87shelv2m6.fsf@udel.edu> <83vajgh4xe.fsf@gnu.org> <838tc12h42.fsf@gnu.org> <834lmfdexa.fsf@gnu.org> <87vaeu40iz.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1519009754 1884 195.159.176.226 (19 Feb 2018 03:09:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 03:09:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Radon Rosborough , =?windows-1252?Q?Cl=E9ment?= Pit-Claudel , emacs-devel To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 19 04:09:09 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enbpF-0008VD-95 for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 04:09:09 +0100 Original-Received: from localhost ([::1]:47314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enbrF-0006Cs-Es for ged-emacs-devel@m.gmane.org; Sun, 18 Feb 2018 22:11:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enbqa-0006CQ-SI for emacs-devel@gnu.org; Sun, 18 Feb 2018 22:10:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enbqX-0004dY-NN for emacs-devel@gnu.org; Sun, 18 Feb 2018 22:10:32 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enbqX-0004d8-HU; Sun, 18 Feb 2018 22:10:29 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w1J3AOf6030347; Sun, 18 Feb 2018 22:10:24 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1B0206630A; Sun, 18 Feb 2018 22:10:24 -0500 (EST) In-Reply-To: <87vaeu40iz.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 18 Feb 2018 18:26:28 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6224=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6224> : inlines <6406> : streams <1779392> : uri <2595346> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:222891 Archived-At: > The first line in the *Messages* buffer reads > Symbol=E2=80=99s value as variable is void: Info-default-directory-list Hmm... indeed, I see the problem: in `command-line`, we do: - load early-init.el - activate all packages - do various frame initializations (e.g. create the GUI frame) - run custom-reevaluate-setting on the custom-delayed-init-variables - load init.el and until we run custom-reevaluate-setting, those delayed vars are still unbound. I don't know if it's safe to do the custom-reevaluate-setting before the frame initializations. If it is, then we could move it to before loading early-init.el, and that would be my favorite choice. If that can't be done, then the second best option is to move the package-activation to after we run custom-reevaluate-setting (so early-init.el still can't (require 'info) because Info-default-directory-list is unbound, but at least the problem at hand should be fixed). Stefan