From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#30994: bug#45857: 28.0.50; Not possible to set package-user-dir in early-init.el Date: Fri, 15 Jan 2021 11:08:52 -0500 Message-ID: References: <83o8hrbbv6.fsf@gnu.org> <83h7njb6a5.fsf@gnu.org> <835z3ybpsj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14474"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ola.x.nilsson@axis.com, 45857@debbugs.gnu.org, 30994@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 15 17:10:12 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 1l0Rfv-0003cx-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jan 2021 17:10:12 +0100 Original-Received: from localhost ([::1]:40166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0Rfu-0005pe-OM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jan 2021 11:10:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Rfm-0005o7-3w for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 11:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0Rfl-0002oK-Si for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 11:10:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l0Rfl-0005Zm-Mw for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 11:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2021 16:10:01 +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.161072695021363 (code B ref 30994); Fri, 15 Jan 2021 16:10:01 +0000 Original-Received: (at 30994) by debbugs.gnu.org; 15 Jan 2021 16:09:10 +0000 Original-Received: from localhost ([127.0.0.1]:41537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0Rew-0005YU-EO for submit@debbugs.gnu.org; Fri, 15 Jan 2021 11:09:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0Reu-0005YF-TA; Fri, 15 Jan 2021 11:09:09 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 592D780611; Fri, 15 Jan 2021 11:09:03 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BCAC78063C; Fri, 15 Jan 2021 11:09:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1610726941; bh=1mHaLqVayr280HxFisojQRB8pnWaGWHHfxjX0QNvfJI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jvPtH9oR34pNPDVUPZ8DPUUID/+G23Dt21F1TvcklU8jgZu3S39v0PTcIQfLw5Y/o 5eaCNJ/JVpygYEZewgxSmy7gOp78zp/zUJO3x5paKFWa+BSHIXhmnmmWQnQly8X84G EKrUj37+w/v3V8SFsXafeapu9uQs8stkrS4VMQT2JDGPFkaGKUetjKoA9aAMGL9qG6 2bkkwf0AkAISmP7w8nqyY0AQBPwM7u8PKIu05kTXiOf46u7nFSik86TwSmNlNpahIJ bMebFQ/EfhA5O5B4UXFZt8qaufZPq7RmO5MEUJjup0fbTza7kWnDaOqRrO87yBc76T jAwlPW1is89Hw== Original-Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 39D68120376; Fri, 15 Jan 2021 11:09:01 -0500 (EST) In-Reply-To: <835z3ybpsj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jan 2021 09:52:12 +0200") 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:197991 Archived-At: > But that's still the same kludge: we will rely on the fact that there > are currently no (i.e. zero, a.k.a. "a small number") of such > variables. I'm hoping that there's a good reason why the one exception we have suffers from a bug, and for that reason we should resist the temptation to add more such cases. >> > Basically, some variables can only be usefully initialized after some >> > part(s) of startup have happened already. One way of dealing with >> > this is to have the variables record this information (e.g., in a >> > plist of their symbol) that would allow us evaluate each variable only >> > once, at the earliest opportunity where the prerequisites are >> > fulfilled. [...] > I say we should get ready for the future now. Introducing the > infrastructure I mentioned is not a big deal. Hmm... maybe I misunderstood what you meant by that infrastructure, then. Could you outline more concretely what it would look like? 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 ? Stefan