From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jordan Isaacs" Newsgroups: gmane.emacs.bugs Subject: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Date: Sun, 22 Dec 2024 03:57:01 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30007"; mail-complaints-to="usenet@ciao.gmane.io" To: 75022@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 13:00:43 2024 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 1tPKdU-0007b4-Rs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 13:00:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPKcy-0002l2-Ef; Sun, 22 Dec 2024 07:00:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPKcu-0002i8-6F for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 07:00:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPKcs-0005WV-4M for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 07:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-Version:To:Subject; bh=FMZvy3l2dxKMptXkfy1ef9YXl9ELijCPQtXA8XsHYdU=; b=SR18AmqMGt/QpsKIZjerdistIyxY2DeTII/DrHE3XrY4WFdfpiK5CruDyWz4i1ujxE0lQQR3gUid5O9ID94eMw7XIByV+5usBEErGRAcRwPE5j5mB5KuMfQyh4hNBGhiWnoo2YzlJKDLBwU3+XBLYLHLqe9+WWhZ6wl6zkQ62icvYmIbjjPDVVcB1+NLQAnEqpa0XP1P4G2qK95X4hQ5I/ylkqtPwoj9KtCAggJxRAhz5Xg/QqzufIiaGBegscrIJpcb+9l8JPEqkxw9BC8xvM2+R4LrMa3RDGZer7HDbPqSVZUrB6wO/SnyiNvybCDE1I3tSkdLxesCvtKRWw/Rig==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPKcr-0008KU-Si for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 07:00:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jordan Isaacs" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 12:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75022 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173486874831910 (code B ref -1); Sun, 22 Dec 2024 12:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2024 11:59:08 +0000 Original-Received: from localhost ([127.0.0.1]:49252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPKbz-0008Ia-BT for submit@debbugs.gnu.org; Sun, 22 Dec 2024 06:59:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPKaS-0008Fr-Ar for submit@debbugs.gnu.org; Sun, 22 Dec 2024 06:57:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPKaP-0002Z4-Cq for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 06:57:31 -0500 Original-Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPKaM-00059o-NP for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 06:57:28 -0500 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id EBA9813800DD for ; Sun, 22 Dec 2024 06:57:22 -0500 (EST) Original-Received: from phl-imap-07 ([10.202.2.97]) by phl-compute-05.internal (MEProxy); Sun, 22 Dec 2024 06:57:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowytrees.dev; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1734868642; x=1734955042; bh=FM Zvy3l2dxKMptXkfy1ef9YXl9ELijCPQtXA8XsHYdU=; b=iEKeA0npkhbRJUEm9h 788uqgkST30yawCrsM3ud1s2N8qDtnp7wVAGuzu7OQG0LdKIeEF7JhaMohr2Qo4A taUCWxCiBna4JKuzbH0KnQJk9jDkBmiWeQYH2J/HuIH98E67lHistV+z2W9cWImw FNJ+O9bSvaaXoeFh3OkSHys5Z9E51NlmCB51eDh0K0BfJ3d9Ik144fWUxxSxmw6j cJpK3CyFCWY/9ZNSS9QpvmeZyPxS4dWl1ax+sgiTv5PgYJwrRg8LBVjKIyzm+zkp toQIK2TNvgnBwF9KDV4iSGaUzv5mf2RAiR1JftPWhU2S8slQkpVBcGHoWsGrdIQy apig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1734868642; x=1734955042; bh=FMZvy3l2dxKMptXkfy1ef9YXl9ELijCPQtX A8XsHYdU=; b=ohDhaKvlfbTs8A0q3IadgviE/0XCkdexynjvl67eyHoPnwLTXRa rC/lxCpVyBIkRHvm5CwxTkOkRtr33vFyq7BKd5Rk6WmK/FmN0CuBEL1jEP4AS4L3 56vTisdwc4/UP/v9SRSa59WrdEfvnVpgC5vh5P1aHG6ssHuZgW6LNI1IAkiQbtEI ZvTMJPFuqhc5GCS8P4RPunufCXOw2I6n71PZOtwqfcY2Z3OIufOyqu7R8RkJFldv KJjTQOqPz2mqU5gSrQC3qncAVhP02gTfcchniYwondrxu2udY8dXEKp+esiRpp2n ERBAAZf4HnevRLD42kp/Lr5+bxYFEDTye9A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtkedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkffutgfgsehtjeertdertddtnecuhfhrohhmpedflfhorhgurghnucfkshgrrggtshdf uceojhhorhgurghnsehsnhhofiihthhrvggvshdruggvvheqnecuggftrfgrthhtvghrnh epffevkefhieefhfefjedvhfeujedtgeettdejvddthfegtdegueekuedutdehudejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhorhgurg hnsehsnhhofiihthhrvggvshdruggvvhdpnhgspghrtghpthhtohepuddpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i650149e5:Fastmail Original-Received: by mailuser.phl.internal (Postfix, from userid 501) id 61DC3BA006F; Sun, 22 Dec 2024 06:57:22 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=103.168.172.151; envelope-from=jordan@snowytrees.dev; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 22 Dec 2024 06:59:06 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297592 Archived-At: In startup.el, the user-emacs-directory and the user eln-cache are set up before processing command line args. The user eln-cache is then gets updated after the early-init.el is loaded. This leaves a gap where early-init.el is loaded without the correct eln-cache directory. This means there will always be a cache miss if the early-init.eln file was in the `--init-directory`. To fix this, either `--init-directory` needs to be read before setting up the user eln-cache, or a call to `startup--update-eln-cache` needs to be called after command line args are processed since user-emacs-directory may have changed (from `--init-directory`).