From unknown Sun Aug 17 04:15:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75022 <75022@debbugs.gnu.org> To: bug#75022 <75022@debbugs.gnu.org> Subject: Status: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Reply-To: bug#75022 <75022@debbugs.gnu.org> Date: Sun, 17 Aug 2025 11:15:55 +0000 retitle 75022 31.0.50; --init-directory sets user-emacs-directory after use= r eln-cache is set reassign 75022 emacs submitter 75022 "Jordan Isaacs" severity 75022 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 22 06:59:08 2024 Received: (at submit) by debbugs.gnu.org; 22 Dec 2024 11:59:08 +0000 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 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 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 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 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) 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 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 MIME-Version: 1.0 Date: Sun, 22 Dec 2024 03:57:01 -0800 From: "Jordan Isaacs" To: bug-gnu-emacs@gnu.org Message-Id: Subject: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Content-Type: text/plain Content-Transfer-Encoding: 7bit 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-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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`). From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 22 07:45:13 2024 Received: (at 75022) by debbugs.gnu.org; 22 Dec 2024 12:45:13 +0000 Received: from localhost ([127.0.0.1]:49342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPLKb-0002AG-6G for submit@debbugs.gnu.org; Sun, 22 Dec 2024 07:45:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPLKZ-00026g-BV for 75022@debbugs.gnu.org; Sun, 22 Dec 2024 07:45:12 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPLKS-0006Mt-12; Sun, 22 Dec 2024 07:45:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EsJYxndEINTeqkkIJEfnsUq9UvudGRTKwB9OtV11zwg=; b=njoDZtHW4XOr 9dxTl4JeUh1tS0L6HLMERVQvH5hiBEwEz9X/RMqJjWiw9gKbsQWFq0hiLRJCVYFYsEGzCYcaXrojW mBFz3HwV/1B3bmQhs9NiowtHRgb+zpcwBcEaoa4Aehy5kpeUCFnfDpq2IkX1ZkBPZpwRSPFLIh3/U Iofu22+k8cLUOJQTKu56ur05gAESLof4aZYVk+Zjp27Liwo77NbyDK3tgyGSdxReQVHxONGKAbTYq W3iLgfT5RwIu05nfLS1LfB9gYziSv/+ksZArLQSrI1urH7wp8+wBBw7aiVOsmS+QsD/4p3KXaB36S FQ8qX6isUj6hZbs1re51TQ==; Date: Sun, 22 Dec 2024 14:44:58 +0200 Message-Id: <86ttav6g51.fsf@gnu.org> From: Eli Zaretskii To: "Jordan Isaacs" In-Reply-To: (jordan@snowytrees.dev) Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75022 Cc: 75022@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 22 Dec 2024 03:57:01 -0800 > From: "Jordan Isaacs" > > 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`). You are not supposed to have in early-init.el stuff that needs to be natively-compiled. early-init.el is for changing the few variables which affect the initialization stage, and that doesn't need native code. You are supposed to have most of your configuration in the normal init file, not in early-init.el. As for the --init-directory, it doesn't affect the search for your init files, it only affects the value of user-emacs-directory (for looking up other files). So I don't think I understand why you are asking for changes in how the startup code works in Emacs. Please tell more about your use case. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 22 11:26:45 2024 Received: (at 75022) by debbugs.gnu.org; 22 Dec 2024 16:26:45 +0000 Received: from localhost ([127.0.0.1]:51631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPOmy-0004sU-Q6 for submit@debbugs.gnu.org; Sun, 22 Dec 2024 11:26:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPOmv-0004sF-Rz for 75022@debbugs.gnu.org; Sun, 22 Dec 2024 11:26:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPOmq-0003Hv-8X; Sun, 22 Dec 2024 11:26:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9KlxdbunxN2+ff8Hfvg0PSvBiLJ6/TXvPku5fPTxsp4=; b=H/Z1qD8dK3QE Ya1TWq9dOebzsoYc+/JduWpB50JlOqY5BkV+bba37hL9uaHNlNvrtcTr017GRJVnQ9nO7I7HhbDlm Q6zNDF0bsa6+UkIBQzlpvYjDFl+OOVscud0nmcAWlrC9ACTtwTKlFf5WAzQ25iWfHBi67QFFkObMv ewyVnhxyS5DDLkBFjsACVFy33zDIKnZiSCyKWK/q8tdfEa2TvG/myEZkARfnrO3ICE6Wu8iwoaPAl JaPVD5GrVUb84g26IqndCofiaJoJctkpKKxynZx4YLNB3Ivwb9I8KVvk6DL2OZ2h5/PB32ry1/SWd kdQxsXFnEfBRlDqMBDasOQ==; Date: Sun, 22 Dec 2024 18:26:33 +0200 Message-Id: <86pllj65vq.fsf@gnu.org> From: Eli Zaretskii To: "Jordan Isaacs" In-Reply-To: <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> (jordan@snowytrees.dev) Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set References: <86ttav6g51.fsf@gnu.org> <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75022 Cc: 75022@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 22 Dec 2024 05:12:47 -0800 > From: "Jordan Isaacs" > Cc: 75022@debbugs.gnu.org > > > So I don't think I understand why you are asking for changes in how > > the startup code works in Emacs. Please tell more about your use > > case. > > I have a read-only directory of my init.el and early-init.el along with the > byte compiled versions of them. So I call emacs with --init-directory: I'm asking why did you compile early-init.el. What do you have in it that can benefit from byte-compilation, let alone native compilation? From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 22 13:51:29 2024 Received: (at 75022) by debbugs.gnu.org; 22 Dec 2024 18:51:29 +0000 Received: from localhost ([127.0.0.1]:51904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPR32-0003H2-EK for submit@debbugs.gnu.org; Sun, 22 Dec 2024 13:51:29 -0500 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:46117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPLlj-0003QB-Nt for 75022@debbugs.gnu.org; Sun, 22 Dec 2024 08:13:16 -0500 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id E294A1380121; Sun, 22 Dec 2024 08:13:07 -0500 (EST) Received: from phl-imap-07 ([10.202.2.97]) by phl-compute-05.internal (MEProxy); Sun, 22 Dec 2024 08:13:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowytrees.dev; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1734873187; x=1734959587; bh=eKbAipNMi+W4kcFNIwidlRCaflLmu4HN gYg12uNFar8=; b=dONy3hpnYI40iri8DdJxlfMuCbpV6V1S+WFe09tB0za1DWzL EsV3Dr44DCrlHbgci2a9Xt310Hrt8qDUyMcp2nEkZLthXNYbgphe4rIVnAZGWHsX LyZJsg4RmNIonjNnxlnhJFbNc+SXfypwudU30Cn4cpG1oxlkzfZ7FdtY68RdrgE+ 4ensxnZFjmZ1eHEtw50d6xqsHxv//KA6/kKtAhM0fR51i+jaMkXoMeslRITHC4OL HtVtaT4jW7k3pDgcI9zOBxek+6MVrdRK2CkfZ3a0T9haWAIshSXR14yjPejUBPsW gVqH1BX2LQBMBl/KJI5yiYA30ieMamq/ZnWGXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1734873187; x= 1734959587; bh=eKbAipNMi+W4kcFNIwidlRCaflLmu4HNgYg12uNFar8=; b=D BFSXplQfrDOiMBtL61pHDG6M8BjIDb9y2BM9kZapa9r7d6p++HHPlVL9FDphBUQc y4gbOjfGptSz/8ppG+4atse2F6AoEf1slpvHii9rIkdWWMtjyw/S5vuKlhVxvuUr TtX3/pU34vE/CgteC92jKMt+J8MMXTyL4slvmc0j89N8ItVVry/1Ix/00YXjJjc/ 8PYECJjmrpDAPrft7eUgWSKymfhB2rCFs9BQnLKavDFiI00TxY4TVT8CnHpD8gHR UGArXEqCszwgWJ7zCLdre1w9UFCTQXDPXMxodNiI6HmPzS3QtFocsjxNH1IofaVm 3wDr+/S1VNuFtGE75dYJA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtkedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedflfhorhgurghnucfkshgrrggtshdfuceojhhorhgurghnsehsnhhofi ihthhrvggvshdruggvvheqnecuggftrfgrthhtvghrnhepuefgtddvffduleevieeuvdff heelueevkeeghedvtdekgeegudffheffkeevgeejnecuffhomhgrihhnpehjugdrlhhotg grlhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehj ohhruggrnhesshhnohifhihtrhgvvghsrdguvghvpdhnsggprhgtphhtthhopedvpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopeejhedtvddvseguvggssghughhsrdhgnhhu rdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i650149e5:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id A543ABA006F; Sun, 22 Dec 2024 08:13:07 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Sun, 22 Dec 2024 05:12:47 -0800 From: "Jordan Isaacs" To: "Eli Zaretskii" Message-Id: <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> In-Reply-To: <86ttav6g51.fsf@gnu.org> References: <86ttav6g51.fsf@gnu.org> Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75022 X-Mailman-Approved-At: Sun, 22 Dec 2024 13:51:27 -0500 Cc: 75022@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > As for the --init-directory, it doesn't affect the search for your > init files, it only affects the value of user-emacs-directory (for > looking up other files). The issue is the `--init-directory` updated the user-emacs-directory, bu= t there was no corresponding call to update the eln-cache directory (startup--up= date-eln-cache). There are comments throughout startup.el about updating the cache direct= ory whenever user-emacs-directory is changed. It is missing that call post command li= ne evaluation. =20 > So I don't think I understand why you are asking for changes in how > the startup code works in Emacs. Please tell more about your use > case. I have a read-only directory of my init.el and early-init.el along with = the byte compiled versions of them. So I call emacs with --init-directory: /nix/store/ln4pwf5blaqiynydrcn344zn7kbfn6vs-emacs-config =E2=94=9C=E2=94=80=E2=94=80 early-init.el -> /nix/store/qq073crkwrjvpfrf= nsbsqq502c8k0a5y-emacs-config-init-1/share/emacs/site-lisp/early-init.el =E2=94=9C=E2=94=80=E2=94=80 early-init.elc -> /nix/store/qq073crkwrjvpfr= fnsbsqq502c8k0a5y-emacs-config-init-1/share/emacs/site-lisp/early-init.e= lc =E2=94=9C=E2=94=80=E2=94=80 eln-cache =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 31.0.50-0186c17f =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 early-init-ca07bda= e-ee82ea37.eln -> /nix/store/qq073crkwrjvpfrfnsbsqq502c8k0a5y-emacs-conf= ig-init-1/share/emacs/native-lisp/31.0.50-0186c17f/early-init-ca07bdae-e= e82ea37.eln =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 init-ab609663-d324= ef3d.eln -> /nix/store/qq073crkwrjvpfrfnsbsqq502c8k0a5y-emacs-config-ini= t-1/share/emacs/native-lisp/31.0.50-0186c17f/init-ab609663-d324ef3d.eln =E2=94=9C=E2=94=80=E2=94=80 init.el -> /nix/store/qq073crkwrjvpfrfnsbsqq= 502c8k0a5y-emacs-config-init-1/share/emacs/site-lisp/init.el =E2=94=94=E2=94=80=E2=94=80 init.elc -> /nix/store/qq073crkwrjvpfrfnsbsq= q502c8k0a5y-emacs-config-init-1/share/emacs/site-lisp/init.elc However, when I remove any mutable eln-cache directory I get the followi= ng message: "Error muted by safe_call: (apply native--compile-async ("/nix/store/ln4= pwf5blaqiynydrcn344zn7kbfn6vs-emacs-config/early-init.el" nil late)) sig= naled (error "Cannot find suitable directory for output in =E2=80=98nati= ve-comp-eln-load-path=E2=80=99.")" Or, when I do give it a mutable eln-cache directory, it ends up recompil= ing it in the background doing unnecessary work: /home/jd/.local/state/emacs/eln-cache/31.0.50-0186c17f/ =E2=94=94=E2=94=80=E2=94=80 early-init-ed4380c6-4ba9e9ac.eln When I set add `/nix/store/ln4pwf5blaqiynydrcn344zn7kbfn6vs-emacs-confi= g/eln-cache` to `EMACSNATIVELOADPATH` everything works great. But ideall= y, startup.el should respect `--init-directory` and update the eln-cache= location for you before loading early-init.el From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 22 16:26:51 2024 Received: (at 75022) by debbugs.gnu.org; 22 Dec 2024 21:26:51 +0000 Received: from localhost ([127.0.0.1]:52192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPTTP-0002NE-19 for submit@debbugs.gnu.org; Sun, 22 Dec 2024 16:26:51 -0500 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:44901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPTTM-0002My-6d for 75022@debbugs.gnu.org; Sun, 22 Dec 2024 16:26:49 -0500 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id EDE392540118; Sun, 22 Dec 2024 16:26:42 -0500 (EST) Received: from phl-imap-07 ([10.202.2.97]) by phl-compute-05.internal (MEProxy); Sun, 22 Dec 2024 16:26:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowytrees.dev; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1734902802; x=1734989202; bh=TSZ6h1j5+HDi/ww6NlBeFSY2A5qOcF6x fZU/xJ8wpCg=; b=KDgikhzW5KfM9vZbSSse6NMHkzTIi+sW9iCcAKZsA6URzBmh xBLfXUDQaMML0NAtHNz+ditfq553T+BreG6Tgp640bLx4W4z4xMeyPKKAPdbDMaQ cmjjFijvPYvuAxbuajt18E07iWaE6qzHphfwKYLOpyv8QH0XB8hRrwDyStW/Rue6 cHQpxz7m3F+haGYbjO2MNr1hpP0ELtC4MnIzt1p5Ozo/n3dG3nDQsZ+scttxMxdY 6pgvr/yS5BZR70sjFfct/DzPrg66ANd120blDJCu4I39f6O/BKP+ks2MqQ4XbXz6 JatKf6rxC1LwXpUARBmpPyWWZxlaPWlYGtkDTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1734902802; x= 1734989202; bh=TSZ6h1j5+HDi/ww6NlBeFSY2A5qOcF6xfZU/xJ8wpCg=; b=t HxA7xbGDUaCivlP5JYoLWUSTne/IfzYtyK1R0dLM4XZts7Nl0bYfRCKG6Cpircs3 qWoc0C22H34pDIxR7D7/du1hoz5T539S44KhH1D7AVAP2xPeyXJhccmAnQsXX1QI nh/EXh0zR3fujyRdbczv+bdt3y44Qk4dxTQjEv+Vyh3KNGffbs5hOlO6FQG7f0ue vaYbiNX6sB/uhUVYuLYYUO47VKvOKoyALg0PZKhm+xbQHSESIIpRwoAp9cplgvJj aHq6lYm064UeZ82E7HKX862Smbr7XO7dXc+2obNY+oUWFSFmAvGPpA5pJ9j7pd5x AAJWmxoQJ6NrWIGJq3PTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtkedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtgfesthhqredtredt jeenucfhrhhomhepfdflohhruggrnhcukfhsrggrtghsfdcuoehjohhruggrnhesshhnoh ifhihtrhgvvghsrdguvghvqeenucggtffrrghtthgvrhhnpeetffegfeeijeffjeejveei hefhffetvdefhfelvdefteevudfhfeejhfdthfehkeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhruggrnhesshhnohifhihtrhgvvghs rdguvghvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopeejhedtvddvseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihii sehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i650149e5:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 8228CBA0070; Sun, 22 Dec 2024 16:26:42 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T27f0444fe0f0b4ce Date: Sun, 22 Dec 2024 13:26:04 -0800 From: "Jordan Isaacs" To: "Eli Zaretskii" Message-Id: In-Reply-To: <86pllj65vq.fsf@gnu.org> References: <86ttav6g51.fsf@gnu.org> <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> <86pllj65vq.fsf@gnu.org> Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75022 Cc: 75022@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Because it is read only, there is no reason not to byte compile everythi= ng. I just make it part of the build step when packaging up my configura= tion. The reasoning for why I byte compile though seems irrelevant, it=E2=80=99= s a bug with a simple fix. The eln-cache path isn=E2=80=99t staying in s= ync with user-emacs-directory.=20 (let ((old-face-font-rescale-alist face-font-rescale-alist)) (unwind-protect (command-line) + (when (featurep 'native-compile) + (startup--update-eln-cache)) From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 23 07:50:19 2024 Received: (at 75022) by debbugs.gnu.org; 23 Dec 2024 12:50:20 +0000 Received: from localhost ([127.0.0.1]:53667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPht5-0003bu-JO for submit@debbugs.gnu.org; Mon, 23 Dec 2024 07:50:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPht3-0003XD-BU for 75022@debbugs.gnu.org; Mon, 23 Dec 2024 07:50:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPhsv-00017y-6o; Mon, 23 Dec 2024 07:50:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=EECyopOLhbiiSQ0FIV6tDyzrJOidtfD8okxRMtt22P0=; b=Mz+Cd3s+DmiyM23nePaV ne4qow9Bbz9fKS5RkqHtSPmZE5tnOa6B/eTTKN9155z4A2OjoY6fFwfghk+NAnYY2g47zqtOrYK1j yej+mNouPRzC7ogKpF6M8K6qjP4Ti4rMqnZcZ4QoX/2EKgHw61qpJntNg13b5FXfWrZfn3C+AWODf dVRhwDgk0uU7LWOELNrpUje/GFEmEwLPF+Z3+m7mBC1pDTBdtr87wi6WTj3Kb+bfk+mYQdt+TrOVW YoUBG1DIiZH8+7cdmqPXuhCR48P8vOLs9pcWiRQX0aeULRrs8YU8w2nsyWNQOgnzi/SBvPiVuejnc ZHdH0y9uMUFrQQ==; Date: Mon, 23 Dec 2024 14:49:49 +0200 Message-Id: <86zfkm4l8y.fsf@gnu.org> From: Eli Zaretskii To: "Jordan Isaacs" , Andrea Corallo In-Reply-To: (jordan@snowytrees.dev) Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set References: <86ttav6g51.fsf@gnu.org> <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> <86pllj65vq.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75022 Cc: 75022@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 22 Dec 2024 13:26:04 -0800 > From: "Jordan Isaacs" > Cc: 75022@debbugs.gnu.org > > Because it is read only, there is no reason not to byte compile everything. I just make it part of the build step when packaging up my configuration. > > The reasoning for why I byte compile though seems irrelevant, it’s a bug with a simple fix. The eln-cache path isn’t staying in sync with user-emacs-directory. > > (let ((old-face-font-rescale-alist face-font-rescale-alist)) > (unwind-protect > (command-line) > + (when (featurep 'native-compile) > + (startup--update-eln-cache)) I'm not at all sure it's indeed so simple to change the eln-cache in the middle of a session, but let's hear what Andrea (CC'ed) thinks about this. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 29 06:25:44 2024 Received: (at 75022) by debbugs.gnu.org; 29 Dec 2024 11:25:44 +0000 Received: from localhost ([127.0.0.1]:53946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRrQV-0002KV-O8 for submit@debbugs.gnu.org; Sun, 29 Dec 2024 06:25:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRrQS-0002KG-OW for 75022@debbugs.gnu.org; Sun, 29 Dec 2024 06:25:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRrQN-0003jL-Br; Sun, 29 Dec 2024 06:25:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=RiJvshhe8TMi5DGfaxOKgqgS1ej9XmCvN5vnldMZMtM=; b=BwBxcvOUEnUpz85478Na tUhpWR9JV5OU8SPP+1RTtWV5qtjiw4tnYF2Imm3hpWTf8mHZsQwGxie1LetNfVqEtiERUbn4X6C9+ N5aA/DquRPcryZKA4Q3JIIb3J6LPBneXXA/Po/2ZPsXfgqMp+NgRCrIaHzNQfEtyTc0AH9OnEmoc4 Cay6H7n9a7ZNXpe4GnwurD78sGhM++WIo+k3QarH6oXSCyeygtdhC/j09lQz6Tqt6ftj48Vxp6YiB ttuPP4oiK3qqIWceejbRwoYMb+SbCFP6J8aArjXQs5yE0zctLuHMbgOq1P9e5P3b8ICJJ6pnQlzxq Uee5BKXURgD3eQ==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tRrQ8-0003Y5-S2; Sun, 29 Dec 2024 06:25:32 -0500 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set In-Reply-To: <86zfkm4l8y.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 23 Dec 2024 14:49:49 +0200") References: <86ttav6g51.fsf@gnu.org> <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> <86pllj65vq.fsf@gnu.org> <86zfkm4l8y.fsf@gnu.org> Date: Sun, 29 Dec 2024 06:25:18 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75022 Cc: 75022@debbugs.gnu.org, Jordan Isaacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Eli Zaretskii writes: >> Date: Sun, 22 Dec 2024 13:26:04 -0800 >> From: "Jordan Isaacs" >> Cc: 75022@debbugs.gnu.org >>=20 >> Because it is read only, there is no reason not to byte compile everythi= ng. I just make it part of the build step when packaging up my configuratio= n. >>=20 >> The reasoning for why I byte compile though seems irrelevant, it=E2=80= =99s a bug with a simple fix. The eln-cache path isn=E2=80=99t staying in s= ync with user-emacs-directory.=20 >>=20 >> (let ((old-face-font-rescale-alist face-font-rescale-alist)) >> (unwind-protect >> (command-line) >> + (when (featurep 'native-compile) >> + (startup--update-eln-cache)) > > I'm not at all sure it's indeed so simple to change the eln-cache in > the middle of a session, but let's hear what Andrea (CC'ed) thinks > about this. I have nothing in my mind which suggests this should not work, I think that if the patch is tested and seems to work we could try it on master. Andrea From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 07:45:56 2025 Received: (at 75022-done) by debbugs.gnu.org; 4 Jan 2025 12:45:56 +0000 Received: from localhost ([127.0.0.1]:53815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU3XQ-00065f-0J for submit@debbugs.gnu.org; Sat, 04 Jan 2025 07:45:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34312) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU3XN-00065N-W5 for 75022-done@debbugs.gnu.org; Sat, 04 Jan 2025 07:45:54 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU3XH-0006o2-HQ; Sat, 04 Jan 2025 07:45:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Q4ltlHIudv54Y5rL3EuLVsd2OJLdg8FD2OitEb2XzjY=; b=rMJvAfZAujNWwGbntKPP 94tQ+kAeEd9yPBDA+Z8J+W2XTVLA1iIcOvgd0aEJxDEzYVYUX84vJ1Pbotk/Mra7P9pgx8TrpgyRw JRrS2fq51gSN6GUx68bS9CiT0+BetKXWmlsFZ4AjvEKgG8itDqshPM6tEYoQLZHruSWu630P9jnCO NMwkdlwvWXwM3RP9m88phKSckfF3GdYX0acYfPZ086/r8h+gkhKwVuLNbx0qJRTeETydS7NwmwmGo SU+p/FgY09/3j9x9EpgjZkoa8uQI6CfWrQpcSFOO7KLhkumE+58J331SJWVpnl4hKLOJcC3ynphcq rWY3zBr6xltcbg==; Date: Sat, 04 Jan 2025 14:45:31 +0200 Message-Id: <86y0zqd9xw.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Sun, 29 Dec 2024 06:25:18 -0500) Subject: Re: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set References: <86ttav6g51.fsf@gnu.org> <29d07feb-4886-4edd-b4ea-1f1cd5f63549@app.fastmail.com> <86pllj65vq.fsf@gnu.org> <86zfkm4l8y.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75022-done Cc: jordan@snowytrees.dev, 75022-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) > From: Andrea Corallo > Cc: "Jordan Isaacs" , 75022@debbugs.gnu.org > Date: Sun, 29 Dec 2024 06:25:18 -0500 > > Eli Zaretskii writes: > > >> Date: Sun, 22 Dec 2024 13:26:04 -0800 > >> From: "Jordan Isaacs" > >> Cc: 75022@debbugs.gnu.org > >> > >> Because it is read only, there is no reason not to byte compile everything. I just make it part of the build step when packaging up my configuration. > >> > >> The reasoning for why I byte compile though seems irrelevant, it’s a bug with a simple fix. The eln-cache path isn’t staying in sync with user-emacs-directory. > >> > >> (let ((old-face-font-rescale-alist face-font-rescale-alist)) > >> (unwind-protect > >> (command-line) > >> + (when (featurep 'native-compile) > >> + (startup--update-eln-cache)) > > > > I'm not at all sure it's indeed so simple to change the eln-cache in > > the middle of a session, but let's hear what Andrea (CC'ed) thinks > > about this. > > I have nothing in my mind which suggests this should not work, I think > that if the patch is tested and seems to work we could try it on master. OK, installed on master, and closing the bug. Thanks. From unknown Sun Aug 17 04:15:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Feb 2025 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator