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#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Date: Sat, 04 Jan 2025 14:45:31 +0200 Message-ID: <86y0zqd9xw.fsf@gnu.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jordan@snowytrees.dev, 75022-done@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 13:46:27 2025 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 1tU3Xv-00044D-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 13:46:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU3XZ-0007YR-0r; Sat, 04 Jan 2025 07:46:05 -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 1tU3XW-0007Xo-Mi for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 07:46:02 -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 1tU3XW-0006p4-Dq for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 07:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=Q4ltlHIudv54Y5rL3EuLVsd2OJLdg8FD2OitEb2XzjY=; b=C+i/dbdhjfHlQx1Fp8ompf5NlUCNXrDFNVHfDREIuTba5BHUpHpIlCAbwGw/g+cU0WxqY23fP5pcbJUTWJ4YPHUFEUeeK59PfVKhQu5W22j1B6P3foCoI5nBri88cF9CkUfMT2YP0fFgAaBF8bZOIgYMFqLKeypz2kR+SHs9hd6ecB8BdaROs0vIDPtqdWLWZ5HMNCa7LBpDyJJY0FSBGmhvlfSEKHgzHqviQ6X+exp3XmwigjLJ7yPP8BKN8W6Kt+9x2QMkoUc7zM4laizeWOCxqBXm9T5sqwwrfAapbkiwj9U80L8SZ/DFEoC/Ti3Om1CrDkT2hOtBahaL6r+cTg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU3XW-000664-7X for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 07:46:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 75022 X-GNU-PR-Package: emacs Mail-Followup-To: 75022@debbugs.gnu.org, eliz@gnu.org, jordan@snowytrees.dev Original-Received: via spool by 75022-done@debbugs.gnu.org id=D75022.173599475623420 (code D ref 75022); Sat, 04 Jan 2025 12:46:01 +0000 Original-Received: (at 75022-done) by debbugs.gnu.org; 4 Jan 2025 12:45:56 +0000 Original-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 Original-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 Original-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==; In-Reply-To: (message from Andrea Corallo on Sun, 29 Dec 2024 06:25:18 -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:298389 Archived-At: > 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.