From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#75022: 31.0.50; --init-directory sets user-emacs-directory after user eln-cache is set Date: Sun, 29 Dec 2024 06:25:18 -0500 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75022@debbugs.gnu.org, Jordan Isaacs To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 29 12:26:26 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 1tRrRB-0004De-PP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Dec 2024 12:26:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRrQu-00018s-3H; Sun, 29 Dec 2024 06:26:09 -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 1tRrQp-00018d-7X for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 06:26: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 1tRrQo-0003lm-Uw for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 06:26: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:Date:References:In-Reply-To:From:To:Subject; bh=RiJvshhe8TMi5DGfaxOKgqgS1ej9XmCvN5vnldMZMtM=; b=sbyQyrgPfj19lefPzgZXgLXoGQKt6Tp6BOGJOC2cWmTwWFBfFYgfUmh8OY5sajugx/1N41ipW6NNmemsrKriDMGr/0hvSfxV/AwKq663g4koPNmPs9lWYcUCSnKsBc3DFpLq1ycN6QUkUM9lrjaDdeaGLUEYalQQ0PDCt1BbJuWHqF8J8vCh7Zm2mMJUu2jdgbx+Nt8svNMy0hdqt96gmdDr6EkVHcbt6hP5OXXD33imdxQ/JNexF9nk4sbazWUsIqphDD2z930BR8cKimpzRR9liLaWzbU9CGMPCUsmzKCnYxeiBB+0MC1U9qVwKrWsvUwk//+1BDSVlPARLeVRpg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRrQo-0002LD-Iy for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 06:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Dec 2024 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75022 X-GNU-PR-Package: emacs Original-Received: via spool by 75022-submit@debbugs.gnu.org id=B75022.17354715448963 (code B ref 75022); Sun, 29 Dec 2024 11:26:02 +0000 Original-Received: (at 75022) by debbugs.gnu.org; 29 Dec 2024 11:25:44 +0000 Original-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 Original-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 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 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==; Original-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 In-Reply-To: <86zfkm4l8y.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 23 Dec 2024 14:49:49 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297942 Archived-At: 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