From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45857: 28.0.50; Not possible to set package-user-dir in early-init.el Date: Sat, 16 Jan 2021 09:08:12 +0200 Message-ID: <83ft319x5v.fsf@gnu.org> References: <83o8hrbbv6.fsf@gnu.org> <83h7njb6a5.fsf@gnu.org> <835z3ybpsj.fsf@gnu.org> <83k0se9hw2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3882"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ola.x.nilsson@axis.com, 45857@debbugs.gnu.org, 30994@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 16 08:09:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0fht-0000vS-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jan 2021 08:09:09 +0100 Original-Received: from localhost ([::1]:53376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0fhs-0007NC-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jan 2021 02:09:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0fhm-0007N3-Ci for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 02:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0fhm-000479-5X for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 02:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l0fhm-0006JS-0u for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 02:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2021 07:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45857 X-GNU-PR-Package: emacs Original-Received: via spool by 45857-submit@debbugs.gnu.org id=B45857.161078090524211 (code B ref 45857); Sat, 16 Jan 2021 07:09:01 +0000 Original-Received: (at 45857) by debbugs.gnu.org; 16 Jan 2021 07:08:25 +0000 Original-Received: from localhost ([127.0.0.1]:42310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0fhA-0006IM-Hd for submit@debbugs.gnu.org; Sat, 16 Jan 2021 02:08:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0fh5-0006I1-Uf; Sat, 16 Jan 2021 02:08:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50314) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0fgz-0003f9-Dp; Sat, 16 Jan 2021 02:08:13 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2764 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l0fgy-0005Ui-AU; Sat, 16 Jan 2021 02:08:12 -0500 In-Reply-To: (message from Stefan Monnier on Fri, 15 Jan 2021 17:19:33 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198012 Archived-At: > From: Stefan Monnier > Cc: ola.x.nilsson@axis.com, 45857@debbugs.gnu.org, 30994@debbugs.gnu.org > Date: Fri, 15 Jan 2021 17:19:33 -0500 > > > In a nutshell: record the startup phase for each variable in a plits > > of its symbol. > > Ah, so instead of just > > :initialize #'custom-initialize-delay > > we'd have something like > > :initialize (custom-initialize-delay 'before-early-init) > or > :initialize (custom-initialize-delay 'after-early-init) > > Where `custom-initialize-delay` becomes something like > > (defun custom-initialize-delay (phase) > (lambda (symbol) > (push (cons symbol phase) custom-delayed-init-variables))) > > depending on when we want the initialization to take place? Yes, something like that. Also 'after-init-file, 'after-term-setup, 'after-window-setup -- per the startup phases we already have. > >> Also, would it currently result in a behavior that's different from: > >> > >> - initialize all delayed vars before early-init > >> - re-initialize blink-cursor-mode after early-init > >> > >> ? > > > > With my proposal, blink-cursor-mode will not be mentioned by name in > > any of these places. > > Yes, of course, but I'm asking whether the resulting *behavior* you're > after is this one. The current result will be the same, yes. But I think it's more future-proof, the only thing that needs to be figured out is the earliest startup phase after which a given variable needs to be initialized.