From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Radon Rosborough Newsgroups: gmane.emacs.devel Subject: Re: Summary and next steps for (package-initialize) Date: Mon, 21 Aug 2017 09:43:31 -0700 Message-ID: References: <83tw12cocz.fsf@gnu.org> <83d17qcfa1.fsf@gnu.org> <83h8x0c206.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1503333909 11489 195.159.176.226 (21 Aug 2017 16:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 16:45:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 18:45:01 2017 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 1djpov-0002Ee-6B for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2017 18:44:57 +0200 Original-Received: from localhost ([::1]:33060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djpoz-0006ch-4Y for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2017 12:45:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djpoG-0006bS-3a for emacs-devel@gnu.org; Mon, 21 Aug 2017 12:44:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djpoF-0001RU-AY for emacs-devel@gnu.org; Mon, 21 Aug 2017 12:44:16 -0400 Original-Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:35012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djpoD-0001QO-M3; Mon, 21 Aug 2017 12:44:13 -0400 Original-Received: by mail-lf0-x231.google.com with SMTP id k186so13449912lfe.2; Mon, 21 Aug 2017 09:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FoCS4PSvidMXf9SjjNoq+N2I+k4ll66psrGNgkxU8R8=; b=JpOodw/HIat8f1yBxQ9AGUpBciz4NsTwT9hnxPesP59uWoVR/jk159JeDH5ONSG2qv UTPe3ENqvYhna0+vYc64m3YZGZUj7PtG2ECGtwDQVQKfhrGjw41zG8NA+0fSoIUuVGZj 1jhtFFbu8m1JoB1GYodZkKY6/Qoz+bCSpABIR+vzyoOeHq3vYmtP+HYSm1PagsP60qkK hUD42FrRw+lakV+qkpeCEfsWkKazvZAwaVIvA3QTo4xeB1WtnpHCfJHKsunPlK5XmkfJ DEfBOCP3TRZseNjhCLQt2wyMEZNJYB7g0UhHVTGURQwVAMdKKDM/6XO/Bp/IXTpPgFnE PymA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FoCS4PSvidMXf9SjjNoq+N2I+k4ll66psrGNgkxU8R8=; b=I32JU8SXDtECT/OFpdJ+fYqAHSwd4X0qRQ5t2khLhhU5JJkDzlUrLuYX0fnhEN0Oz2 5YdXO9SW3jynckfVfmDs+60i6LyfxNAbnfTFejzhx8OFJ/ay9JYWG5N2C+szJoRQzT8R SgP6M5PWMY6499WFGnfjD9rehgd0uvxt/XIaPecaTqv9nbywrekbHv/0Rq+lAor/15gr O4m5+97kJXyxn7i8dmzAOfsMeARsBx2+VRUojkPXUN6sEuI0dT3HlW+2UXHO/7BII9BD vCXXlxSLYnqeMfaU1HIFhVZWOYSJaiK+ugcswHUESUn/7lSPcAGwChmTHcJdtVBU0qUY SUTA== X-Gm-Message-State: AHYfb5gPbWfQLVL0HwxAHKI0Vg1quIzm4fPfHrxDb7c81B8exz7CDGuZ t9UkXXPFrtuhFseqsj0WvDOpaNGiyrqMrHxdhA== X-Received: by 10.25.56.78 with SMTP id d14mr1491353lfj.252.1503333851957; Mon, 21 Aug 2017 09:44:11 -0700 (PDT) Original-Received: by 10.25.80.3 with HTTP; Mon, 21 Aug 2017 09:43:31 -0700 (PDT) In-Reply-To: <83h8x0c206.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::231 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:217660 Archived-At: > > Please explain what exactly needs to be done before the user init-file > > is processed, and how doing this would allow both package.el > > configuration and package configuration in the init-file without the > > prescence of an explicit (package-initialize) call. > > AFAIU, packages need to be loaded before we run this fragment: > > ;; Re-evaluate predefined variables whose initial value depends on > ;; the runtime context. > (mapc 'custom-reevaluate-setting > ;; Initialize them in the same order they were loaded, in case there > ;; are dependencies between them. > (prog1 (nreverse custom-delayed-init-variables) > (setq custom-delayed-init-variables nil))) > > This is so the defcustom's in the loaded packages are known to Emacs > when the init file is loaded. So my proposal is to call some > package.el function that would do that before that. AFAICT, customizing `package-load-list' and `package-user-dir' is no longer possible with that approach. If such customization is put in the init-file, it's too late; packages have already been loaded at the point in startup.el that you mentioned. How are you proposing to deal with that problem?