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#30994: bug#45857: 28.0.50; Not possible to set package-user-dir in early-init.el Date: Thu, 14 Jan 2021 20:40:45 +0200 Message-ID: <83o8hrbbv6.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22076"; 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 Thu Jan 14 19:43:08 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 1l07aO-0005ci-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 19:43:08 +0100 Original-Received: from localhost ([::1]:35514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l07aN-0007tG-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 13:43:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l07ZX-0007ru-B2 for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 13:42:18 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l07ZK-0003O9-8B for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 13:42:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l07ZK-0000ob-5I for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 13:42: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: Thu, 14 Jan 2021 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30994 X-GNU-PR-Package: emacs Original-Received: via spool by 30994-submit@debbugs.gnu.org id=B30994.16106496623033 (code B ref 30994); Thu, 14 Jan 2021 18:42:02 +0000 Original-Received: (at 30994) by debbugs.gnu.org; 14 Jan 2021 18:41:02 +0000 Original-Received: from localhost ([127.0.0.1]:39180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l07YL-0000mj-CH for submit@debbugs.gnu.org; Thu, 14 Jan 2021 13:41:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l07YJ-0000mG-7v; Thu, 14 Jan 2021 13:41:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56215) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l07YA-00030p-38; Thu, 14 Jan 2021 13:40:50 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3023 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l07Y5-0000Bf-Pq; Thu, 14 Jan 2021 13:40:50 -0500 In-Reply-To: (message from Stefan Monnier on Thu, 14 Jan 2021 13:20:53 -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:197956 Archived-At: > From: Stefan Monnier > Date: Thu, 14 Jan 2021 13:20:53 -0500 > Cc: 45857@debbugs.gnu.org, 30994@debbugs.gnu.org > > >> the package-user-dir defcustom gets the custom-initialize-delay > >> intializer. At least for me, this overrides any setting of > >> package-user-dir that is done in early-init.el. > > Oh, I see you're right, and I think this issue is wider than > > `package-user-dir` since it affects all the other vars that use > > `custom-initialize-delay`. > > Back in June 2018, Eli wrote: > > I can see several ways out of this: > > > > . Move the call to custom-reevaluate-setting back where it was, and > > instead call custom-reevaluate-setting in that earlier place only > > for Info-default-directory-list, which was the original reason why > > the call was moved; > > . Add a call to custom-reevaluate-setting for blink-cursor-mode > > where the window-system is already set up; > > . Call custom-reevaluate-setting for all the delayed-init variables > > twice: once where we do that now, and again where we did that > > before the above commit; > > . Introduce yet another variable similar to > > custom-delayed-init-variables, but separate from it, and put on > > it all the delayed-init variables that need the window-system to > > be set up, leaving all the rest in custom-delayed-init-variables. > > We ended up going with the 3rd option, but this is the source of the > problem here. I think we should change to option 2 for now and plan on > fixing it for good by removing this exception, i.e. by making > the default value of `blink-cursor-mode` be t. > > More concretely, I suggest the patch below, Is there any place where all these complications are described, so that people (and we ourselves) could have a complete, comprehensive overview of this stuff and the various problems it needs to solve? If not, how about taking this opportunity to describe that? Because otherwise these incidents will keep happening. FWIW, I'm not sure I have a good understand how is this old issue related to the new one.