From unknown Tue Jun 17 20:19:34 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#55655 <55655@debbugs.gnu.org> To: bug#55655 <55655@debbugs.gnu.org> Subject: Status: 28.1; package.el no longers respects `user-emacs-directory' Reply-To: bug#55655 <55655@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:19:34 +0000 retitle 55655 28.1; package.el no longers respects `user-emacs-directory' reassign 55655 emacs submitter 55655 Shitikanth severity 55655 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 07:08:07 2022 Received: (at submit) by debbugs.gnu.org; 26 May 2022 11:08:07 +0000 Received: from localhost ([127.0.0.1]:57125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBLb-0000Kp-91 for submit@debbugs.gnu.org; Thu, 26 May 2022 07:08:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:50380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBLY-0000Kc-EC for submit@debbugs.gnu.org; Thu, 26 May 2022 07:08:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBLY-0000IE-4l for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 07:08:04 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:53118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuBLV-0003WS-Fb for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 07:08:03 -0400 Received: by mail-pj1-x1029.google.com with SMTP id gz24so1462459pjb.2 for ; Thu, 26 May 2022 04:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=BO02ScVOps+SxyBFeJIQAAGSrMNMvMv4Q6tsosWvn5A=; b=YrXU35psMYSWJVrTLNXUOb0OKwnn3vcHf806wrfp3969CD+ag5f3hufOLBCj7pcypa 1yARaohjEZnCZM1N5XXlv7kaldW0HgICNJSzyx4Y8auuVm6Aj7JMh9Y4kHg/cHs0Q4rp muCRNvaLkIsKcNKwb5fF6lepIpqWvVivocneMbYkIPt+uAUZBE+3RC8F+chmYNsPG3uQ ZbtlZZaydHQMyYNNFIGZlaxnH7o8/as8uA51+WfXsZJDp1yU8+0vBHb05dIqylFEE0B3 f8+4XAW3KOHOd23x+kQT+Gi5nSS8CUkX0tBL5m+tW/9tK+QFVEVDFywkFCWfP5VK4WNm GUag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BO02ScVOps+SxyBFeJIQAAGSrMNMvMv4Q6tsosWvn5A=; b=goDpRErOOPC4UJxJn+kRuNH/zVLPcVtw2ux9EFtnodvNFfOW6eo5bAxiFzKMdyAbTE fUSTAmh6AFz75c2gFc6lirZ0ZtIZ0co12olWTeWMggdHJIKXYqBoyGF/cHx4X5riUPU2 3DIGGZiycjcKJY3f2sktVy0q+Zf8tYpIciAgItyIqctjyD40IStCLxHYmim6wZoLX27q svtwvN0NXCcFB1PpGr6FfynyFRV0oWt3dkBlmMkUqVczcUZuEnk1Ow+tA3fG8pJZo3xE o+ttsn1TJJY8O/ZGYUz5gVcRSgMTsvRSXk9KfRQuqWKugWzQ5VPdRZ1ocegPXacDiSNN gmeA== X-Gm-Message-State: AOAM531E2mnj/vm7d/b4WCrh6CHIicXDnzfq/5Lhtemtqpgvs4jD5mZN 8L4q7WWCvwCyL//71dW3I0bXzJWHLdu7wRSfoEw1fB74Jko= X-Google-Smtp-Source: ABdhPJwjYOhUuJMy2HxBgtxEw3T3TaLi+o7Ed4aHJ3FQTVCvA6zHd28y9AcVdmXpy3bxS9WuW53HRO1XUSwtOR0Vr70= X-Received: by 2002:a17:90b:4d91:b0:1df:f18f:7836 with SMTP id oj17-20020a17090b4d9100b001dff18f7836mr2092153pjb.152.1653563278363; Thu, 26 May 2022 04:07:58 -0700 (PDT) MIME-Version: 1.0 From: Shitikanth Date: Thu, 26 May 2022 16:37:48 +0530 Message-ID: Subject: 28.1; package.el no longers respects `user-emacs-directory' To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=golu3990@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit 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.1 (--) Until emacs 27.2, package.el used to correctly pick `package-user-dir' based on the value of `user-emacs-directory', but it now seems to ignore it and defaults to "~/.emacs.d/elpa". Demo: (setq user-emacs-directory "/tmp") (require 'package) (message "%s" package-user-dir) Starting with "emacs -Q" this would output "~/.emacs.d/elpa". Expected output: "/tmp/elpa" (as in emacs 27.2). Based on git bisect, the offending commit seems to be 9973019764. From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 07:49:27 2022 Received: (at 55655) by debbugs.gnu.org; 26 May 2022 11:49:27 +0000 Received: from localhost ([127.0.0.1]:57149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBza-0003WU-QK for submit@debbugs.gnu.org; Thu, 26 May 2022 07:49:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBzV-0003WD-7r for 55655@debbugs.gnu.org; Thu, 26 May 2022 07:49:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBzP-0002on-S8; Thu, 26 May 2022 07:49:15 -0400 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=Bt5JtXbRRxPuHxDLJ+20xqRWBZnqAs5VZ0zzZNFEg3A=; b=WagyYDZaz/bG zg3vFqbkO2keTqL4MZAqTbwDW3XPeW96JEgTz3N0akEeS3Ui8kNAN8pvBPNpQBLzepBt/B2SivF+R ZYW3iF1rj6ZI4C23X8Bf5c58ccz/zCdwPpFZkL9foPJaPA2sVWW3LsANCO8d1ka9ghfO+LCg+gEzp cEYDBlZaxvtiSp7Qh71Y6aFkD7MuzkZnebgN4QmMwaGK/b+8V46ZRI6ZZYgGxDzn8nXUSuHLQyAXZ 15aSgyrvJA8M83Hye8CS2mg6W/UGc1HtESjnR/xqItoL3V3jCaPMCStSegWMy/roVe2ga5soeEZWT KFctCY19jhK0ZyLF8h/Iug==; Received: from [87.69.77.57] (port=4088 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBzP-0005GH-AS; Thu, 26 May 2022 07:49:15 -0400 Date: Thu, 26 May 2022 14:49:08 +0300 Message-Id: <834k1cpl8r.fsf@gnu.org> From: Eli Zaretskii To: Shitikanth In-Reply-To: (message from Shitikanth on Thu, 26 May 2022 16:37:48 +0530) Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55655 Cc: 55655@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 (---) > From: Shitikanth > Date: Thu, 26 May 2022 16:37:48 +0530 > > Until emacs 27.2, package.el used to correctly pick `package-user-dir' > based on the value of `user-emacs-directory', but it now seems to ignore > it and defaults to "~/.emacs.d/elpa". > > Demo: > (setq user-emacs-directory "/tmp") > (require 'package) > (message "%s" package-user-dir) > > Starting with "emacs -Q" this would output "~/.emacs.d/elpa". > Expected output: "/tmp/elpa" (as in emacs 27.2). > > Based on git bisect, the offending commit seems to be 9973019764. Why do you set user-emacs-directory instead of setting package-user-dir directly? You are supposed to set the latter in your early-init file. From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 09:20:10 2022 Received: (at 55655) by debbugs.gnu.org; 26 May 2022 13:20:11 +0000 Received: from localhost ([127.0.0.1]:57424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDPO-000464-Nh for submit@debbugs.gnu.org; Thu, 26 May 2022 09:20:10 -0400 Received: from mail-pg1-f177.google.com ([209.85.215.177]:44848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDPN-00045o-8D for 55655@debbugs.gnu.org; Thu, 26 May 2022 09:20:09 -0400 Received: by mail-pg1-f177.google.com with SMTP id v15so1298790pgk.11 for <55655@debbugs.gnu.org>; Thu, 26 May 2022 06:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GuUX6V56iU6JjwVDHGGPPpfSexGc28YkCslDGM/TpIg=; b=aHzTKW3PfMNOZEgoxA6C8IV4aki+khsna0vdPGRz9anr7LW//Vlzf8QTmG6GMEwsGo 6Vxekj+s3jRXS25BR2F+lXwzazi69JYe/LWdbw4KXRCOZxfj7Ci0RgZJ+QN+NwTNrpwO 0zrRhbj8CP3wBOYpScLFXDxFuvQNlUy/ODTQcHZ1PPUwQNYpKwW88v9F/hAcOREPzOkR mDakteG54LsKZHuZ5GByfdLvdnE1iFZJ5noWUpxC84sFYwl+fN+FFYww/mpIGBFq6DtZ SeKS0TYWiGe1gntWz+MuLLgw3m4MIy1SZscTkcoJU2unpXQXYxchZAUe7PpSbjlLadj3 QRfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GuUX6V56iU6JjwVDHGGPPpfSexGc28YkCslDGM/TpIg=; b=QAH65XF31PHTY8l42IscdSGWIX4y2bVx1Fo/2ScIalRZOcuu4Rs4FEqhOboMH+sK/k 24v1FYWCFeO/lDZqX5A8Tggg9x9h+pb+nPocQpdYjGP+rllvMV+fA+aQvQm4MFpVw1PZ 86GcToK1E8OZYQbnVFXG/Mf1QaN/gLLR2CCLMiDc0kiErNTC12cKsLK4NcKtC0sGADm4 9eGd15gfF5IJGGm/mghG39dgg4k2IVq34Qf3xJSAHOLTR1DkFyZYv7YDxPFy/W7M3TIW QM08TN34gWYNepnVIcOra0Dwf17ckqmVrizSHQj4zU5inr4c3fj2jqsIwm8K6xExja8A xW8Q== X-Gm-Message-State: AOAM533kLIq+eJPPGcJEnXrfewUU8S8eGPGgQJfAu7FF9DtUAl3F0GvL aeqsOvp8xQGCSkKgqj1MEkF9VndeoQJ22ECXHfXhX6+4tqo= X-Google-Smtp-Source: ABdhPJxNCdrDAIxJ1wEEs8iuw8XRWwNTFXS4Nv8KGeYbehyLqFa0De7jZ5eH/DPQgwc1cMB4YC4KYPIZqJ0cRlRapzg= X-Received: by 2002:a63:2d8:0:b0:3f9:d9fa:e089 with SMTP id 207-20020a6302d8000000b003f9d9fae089mr24582197pgc.255.1653571203296; Thu, 26 May 2022 06:20:03 -0700 (PDT) MIME-Version: 1.0 References: <834k1cpl8r.fsf@gnu.org> In-Reply-To: <834k1cpl8r.fsf@gnu.org> From: Shitikanth Date: Thu, 26 May 2022 18:49:53 +0530 Message-ID: Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 55655 Cc: 55655@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: -0.8 (/) I think almost all emacs packages follow the convention of setting the location of their cache/configuration files by calling`locate-user-emacs-file'. This enables the user to just set the user-emacs-directory instead of configuring all of them individually. (This works great for the use case of wanting to put your emacs config in a location other than ~/.emacs.d or even having multiple emacs configs.) > (defcustom package-user-dir (locate-user-emacs-file "elpa") Looking at the definition of `package-user-dir`, it ostensibly tries to follow the same convention as well. It has just stopped working for some reason since 9973019764, which is why I consider this a bug. Is it actually intended behavior that `package-user-dir' should not by default have the same value as (locate-user-emacs-file "elpa")? On Thu, 26 May 2022 at 17:19, Eli Zaretskii wrote: > > > From: Shitikanth > > Date: Thu, 26 May 2022 16:37:48 +0530 > > > > Until emacs 27.2, package.el used to correctly pick `package-user-dir' > > based on the value of `user-emacs-directory', but it now seems to ignore > > it and defaults to "~/.emacs.d/elpa". > > > > Demo: > > (setq user-emacs-directory "/tmp") > > (require 'package) > > (message "%s" package-user-dir) > > > > Starting with "emacs -Q" this would output "~/.emacs.d/elpa". > > Expected output: "/tmp/elpa" (as in emacs 27.2). > > > > Based on git bisect, the offending commit seems to be 9973019764. > > Why do you set user-emacs-directory instead of setting > package-user-dir directly? You are supposed to set the latter in your > early-init file. From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 09:55:54 2022 Received: (at 55655) by debbugs.gnu.org; 26 May 2022 13:55:54 +0000 Received: from localhost ([127.0.0.1]:59668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDxu-0005YP-J3 for submit@debbugs.gnu.org; Thu, 26 May 2022 09:55:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDxg-0005KK-Iy for 55655@debbugs.gnu.org; Thu, 26 May 2022 09:55:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDxa-0005hv-Pv; Thu, 26 May 2022 09:55:30 -0400 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=Z0bt5nrAXITeypQi2U1BB97Bm2R5x1OJIp8izJsyPZw=; b=Bzukwk9DHfFF Ezz3zOSj+U0cdggAclhrbnN4sks7iqEUYW6OQHJBWzRa1WMkuUE8Gdk/5FmQ50B3iCPH9iy0lbTR+ JhS7l2AT3w8Uq+6BKuJdQLdyPj4XP+kz2CP4UbHdB+/uGSRtySn7XyIbbZOo4cVC01Nf45qnVVRsV OcSl0foeVwlDZ5mme++V1ZVYd546lyevl3cJ9zxaUhu1thiVFt4U6ErP4Z2eCC5YN8cu0R2W7hjRn 3jHQWGqY/sKrmebXJ1YtfZCyuL1rT+3sv9BQybl/iVwmnX7qgc+66mTVGaAHfAAk7Ha8t+/Cv9p/m oVv2y93LA91u0lluYZ9oSQ==; Received: from [87.69.77.57] (port=4427 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDxZ-0000HD-P4; Thu, 26 May 2022 09:55:30 -0400 Date: Thu, 26 May 2022 16:55:23 +0300 Message-Id: <83wne8o0tw.fsf@gnu.org> From: Eli Zaretskii To: Shitikanth , Stefan Monnier In-Reply-To: (message from Shitikanth on Thu, 26 May 2022 18:49:53 +0530) Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' References: <834k1cpl8r.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55655 Cc: 55655@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 (---) > From: Shitikanth > Date: Thu, 26 May 2022 18:49:53 +0530 > Cc: 55655@debbugs.gnu.org > > I think almost all emacs packages follow the convention of setting > the location of their cache/configuration files by > calling`locate-user-emacs-file'. > This enables the user to just set the user-emacs-directory instead of > configuring all of them individually. (This works great for the use case of > wanting to put your emacs config in a location other than ~/.emacs.d or > even having multiple emacs configs.) > > > (defcustom package-user-dir (locate-user-emacs-file "elpa") > > Looking at the definition of `package-user-dir`, it ostensibly tries to > follow the same convention as well. It has just stopped working for > some reason since 9973019764, which is why I consider this a bug. > > Is it actually intended behavior that `package-user-dir' should not > by default have the same value as (locate-user-emacs-file "elpa")? Yes, but user-emacs-directory isn't supposed to be set, it is supposed to be computed by Emacs early at startup, and then used for the rest of the startup processing. Stefan, am I missing something here? From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 11:29:22 2022 Received: (at 55655) by debbugs.gnu.org; 26 May 2022 15:29:22 +0000 Received: from localhost ([127.0.0.1]:59815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuFQQ-0001dP-2x for submit@debbugs.gnu.org; Thu, 26 May 2022 11:29:22 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuFQO-0001dB-7y for 55655@debbugs.gnu.org; Thu, 26 May 2022 11:29:20 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4AC2580723; Thu, 26 May 2022 11:29:14 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AC36D804AA; Thu, 26 May 2022 11:29:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1653578952; bh=r+MrmjIRXMnt/gf1oQbHIvDiBuSLGK8RBgK4LIZQPSE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JiUN9Rq1zVbdgIT2PFkmj446uR+k0lTus0krT0NEuGu57/kcXE869BgzK9fJAp11c NswkH2RX876lAemmVJH6BCrIPBTvKlaw6e7rAO7wTYqqrApma6KaNLjAveXe67ECwK uAv7yyMYWjn7jkK3tzH7cVMpwB+BTWmpr0QzpFiMJHhKiJ0PsRBKRSCAA5opuytLQx 88caJ9tWAJAXZKDUNnpGZTBKio0plDwmvNSvRgTyyObXJjJVlIP9DhOFdgSTABRwFB BeC1d3p6/C2L+1wgz0GL9soyEYNqQQ4i5af+Yjwb7Ov+JHBY1P+ig8Ahe7B2C3d62D 5B6MgM5EMsuyA== Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8F3E3120BFB; Thu, 26 May 2022 11:29:12 -0400 (EDT) From: Stefan Monnier To: Shitikanth Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' Message-ID: References: Date: Thu, 26 May 2022 11:29:12 -0400 In-Reply-To: (Shitikanth's message of "Thu, 26 May 2022 16:37:48 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.205 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55655 Cc: 55655@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 (---) Shitikanth [2022-05-26 16:37:48] wrote: > Until emacs 27.2, package.el used to correctly pick `package-user-dir' > based on the value of `user-emacs-directory', but it now seems to ignore > it and defaults to "~/.emacs.d/elpa". > > Demo: > (setq user-emacs-directory "/tmp") > (require 'package) > (message "%s" package-user-dir) > > Starting with "emacs -Q" this would output "~/.emacs.d/elpa". > Expected output: "/tmp/elpa" (as in emacs 27.2). That expectation is wrong, sadly, because it assumes that the initialization of `package-user-dir` takes place during (require 'package), which is not the case because that variable is now initialized earlier. I understand it's a change, but it might be difficult to make this specific recipe work the way you want without breaking other use-cases. Could you give some more details about the use case that actually affects you (I hope it's slightly different from the simplified recipe shown above)? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 01:11:09 2022 Received: (at 55655) by debbugs.gnu.org; 27 May 2022 05:11:09 +0000 Received: from localhost ([127.0.0.1]:60602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuSFh-0001Rb-DW for submit@debbugs.gnu.org; Fri, 27 May 2022 01:11:09 -0400 Received: from mail-pj1-f46.google.com ([209.85.216.46]:36830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuSFf-0001Qa-8I for 55655@debbugs.gnu.org; Fri, 27 May 2022 01:11:07 -0400 Received: by mail-pj1-f46.google.com with SMTP id u12-20020a17090a1d4c00b001df78c7c209so6204807pju.1 for <55655@debbugs.gnu.org>; Thu, 26 May 2022 22:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lV7JulkOSjSrV8GuDqKw4k65y4uA5LMdxriWsXWaP8c=; b=V287PfaG5/SP7HSWMsyqiuC4dbnUj/uUBPXBW7sVZDSKoRbS4umzuR+qDm9VigvpVe KYqtl1RWEj6SAempXDXtold2Zt/8zbRsKTHZ6SV/9iMNzSK8TvdDpCYBIq+bYVksXCZQ mD3OxNchoBP4f+Qk49nHHAMFXg3AAy3//sDdT4g95WrNDX7RPVa+wJMtBqnYTqS36/sf Dt54HhXUSXSiTtELXsMsNbmAFMSY3/aOwecAt8ZdagZNKiNQg9NbrRkxEPyuJ8Wj4I5a 3mogaGyed8ou73I1jEC3f+JS/Vy50iSeFtshkQvVClX6+MQVkpK/DxIeCsXBFwD2B1Jm n2yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lV7JulkOSjSrV8GuDqKw4k65y4uA5LMdxriWsXWaP8c=; b=DI5syiz0VBtVjqJ9khGWvL7qwYazA1SzggwNjM1Ju1+3/S+VsDdB443el8pRiT2K1/ weFu7wvvsgXIQHFVM4G/HwIkqiwzvJtF3ZdDBvzqEkKEVSqredvF7lRY+O4wekmrkA1x ooCP/U0V0fVNiYTbDSqP/6bSxdONMs/YZ6IU8ogzweO9PGu3BzPlu+AKR85xHSLawfiV LhXpfxjv4SEbBTKefRXIG47iBhAUO2akf+RIK1ilyCfjo279CAF18tZNa9poHOljbgfe k5GWrw35KmD3hJHlFNYFUzUgzxFMba+ndz92OclHDYL0xCv0PzVOXCEqS7sMr20hc4gC TgJA== X-Gm-Message-State: AOAM533Xq327HwJzaQcShAdJ+8SveBIgo1Ph4WRqSkMRUuITVjCNS8XA wz4YW+h/koANeMEnuIedwBPHDuQY6Ydu4daXBtVsHhfbgVs= X-Google-Smtp-Source: ABdhPJyuAt/ZsfaV8h4r2/WxdQ2ssH899eCc9dGDcIjJXU1btp/eVT9P+LzmDb2+iSVlr/u3B6DPP9+BaShjMZv5GLg= X-Received: by 2002:a17:902:b688:b0:162:3124:cde2 with SMTP id c8-20020a170902b68800b001623124cde2mr20983840pls.166.1653628261065; Thu, 26 May 2022 22:11:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shitikanth Date: Fri, 27 May 2022 10:40:53 +0530 Message-ID: Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 55655 Cc: 55655@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: -0.8 (/) >Could you give some more details about the use case that actually affects you I just have a couple of different configs and use them with "emacs -Q --load $config_dir/init.el" and set the user-emacs-directory early in "$config_dir/init.el". This was also the easiest way to try out other people's configs without disturbing your own. I guess I was always aware that this was an abuse of the init system, so if this is an intended change, you can close the bug report. On Thu, 26 May 2022 at 20:59, Stefan Monnier wrote: > > Shitikanth [2022-05-26 16:37:48] wrote: > > Until emacs 27.2, package.el used to correctly pick `package-user-dir' > > based on the value of `user-emacs-directory', but it now seems to ignore > > it and defaults to "~/.emacs.d/elpa". > > > > Demo: > > (setq user-emacs-directory "/tmp") > > (require 'package) > > (message "%s" package-user-dir) > > > > Starting with "emacs -Q" this would output "~/.emacs.d/elpa". > > Expected output: "/tmp/elpa" (as in emacs 27.2). > > That expectation is wrong, sadly, because it assumes that the > initialization of `package-user-dir` takes place during (require > 'package), which is not the case because that variable is now > initialized earlier. > > I understand it's a change, but it might be difficult to make this > specific recipe work the way you want without breaking other use-cases. > > Could you give some more details about the use case that actually > affects you (I hope it's slightly different from the simplified recipe > shown above)? > > > Stefan > From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 01:39:16 2022 Received: (at 55655) by debbugs.gnu.org; 27 May 2022 05:39:16 +0000 Received: from localhost ([127.0.0.1]:60644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuSgu-0002Ef-FG for submit@debbugs.gnu.org; Fri, 27 May 2022 01:39:16 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuSgt-0002ES-4S for 55655@debbugs.gnu.org; Fri, 27 May 2022 01:39:15 -0400 Received: by mail-pl1-f196.google.com with SMTP id n18so3262870plg.5 for <55655@debbugs.gnu.org>; Thu, 26 May 2022 22:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=7TH+NAFZ3aaH8T91kYUzg5K2CfICumcLy69CVfyKI/k=; b=akuilh6JMTZuyeZPia8f5jsKd6Ngjt2wnQ2wPsdKLqLxikYMQKNp4xllRPew0SzkLF KAcMRaIkSPtVYeW0HCJQ/pL/tRf+WcmdNxoKOpXuzlqKyU1WP4OQLYcY9UB+JzLfsgiN YAJGjt6qHsyAbBsU9xgjnlVjOXIpnEl0b9iFaZHp2ehRjPnEHt5uDEPoJ2KsDf25Mwxw FVLcujyYzj0hoS+gIpqkkwqsGtx7OFnVLB+wVQ1uHNCm+RenkuDPYXI47jOktlJ0jnnA 7B1FO969TpYDNaBdzqXTVk82OB9ldAkQ0RPWXkG/1dSnPq/rnA4hR2k/Y+Y54P9Z4G71 fAAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=7TH+NAFZ3aaH8T91kYUzg5K2CfICumcLy69CVfyKI/k=; b=7f9C6dCmSI9CneePv7DGnFbEnHoocHPdkrUdLQCKM/K4cETHc++3aqFO+971KqJ+NC CBeeN60l/hwdPoWcBPW/Vkp3ibvidXuYK4nn+KXl1tMQk7IcJgcxxLrDwLc+1zmEzcoL evrwtjTQ6dnaoeNPis4eYCDONPXc0PhMG0OY9p7xF1r/K94BF+tDT3EIY2RKx6RubMgO SNuPxnZAImDQI0pe3+gK67GJyz8n8sWwNdzbN2MiHRxNXOw+hSqmmZ8nFCAIR10SmO/G JyKWbmuYSx65xkOBdrdTdaBDFWwtxAvLkXab30PNE1OK9kV1pndvockHHTmLw/w8qr1G ILxw== X-Gm-Message-State: AOAM531/QsU9dygftrd4mvntQcZ7+MyLfDMRrf5UVuY9/1CJbt7dmC8e SfhBsy00uDbgBqk2/yX0VDc= X-Google-Smtp-Source: ABdhPJxRcLCTd0N3487GfdNwyBcE6Pa/cs4TwQ4bS21yv8nD8GQa1OlQOo38ukLOg3BnuApUawol+A== X-Received: by 2002:a17:902:854c:b0:159:a70:deca with SMTP id d12-20020a170902854c00b001590a70decamr42162451plo.142.1653629949171; Thu, 26 May 2022 22:39:09 -0700 (PDT) Received: from localhost ([49.205.85.242]) by smtp.gmail.com with ESMTPSA id c1-20020a63ef41000000b003c14af505f8sm2451242pgk.16.2022.05.26.22.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 22:39:08 -0700 (PDT) From: Visuwesh To: Shitikanth Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' References: Date: Fri, 27 May 2022 11:09:05 +0530 In-Reply-To: (Shitikanth's message of "Fri, 27 May 2022 10:40:53 +0530") Message-ID: <87ilprfsau.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55655 Cc: Stefan Monnier , 55655@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.0 (-) [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=AE=E0=AF=87 = 27, 2022] Shitikanth wrote: >>Could you give some more details about the use case that actually > affects you > > I just have a couple of different configs and use them with > "emacs -Q --load $config_dir/init.el" and set the user-emacs-directory > early in "$config_dir/init.el". This was also the easiest way to try out > other people's configs without disturbing your own. > > I guess I was always aware that this was an abuse of the init system, > so if this is an intended change, you can close the bug report. > FWIW, Emacs 29 added a --init-directory flag for these purposes. Here's the NEWS entry of the change, ** Emacs now supports setting 'user-emacs-directory' via '--init-direct= ory'. From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 02:03:32 2022 Received: (at 55655) by debbugs.gnu.org; 27 May 2022 06:03:32 +0000 Received: from localhost ([127.0.0.1]:60675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuT4O-00053q-5Z for submit@debbugs.gnu.org; Fri, 27 May 2022 02:03:32 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:46024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuT4N-00053a-3h for 55655@debbugs.gnu.org; Fri, 27 May 2022 02:03:31 -0400 Received: by mail-pf1-f174.google.com with SMTP id b135so3497082pfb.12 for <55655@debbugs.gnu.org>; Thu, 26 May 2022 23:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ewjap9et99muqwttRHnVFf0GRMb/C/2cnXyOstgyFh0=; b=iwdQ7ZRhCguyztSksAslfGgXIdn7HN2VBxelF7hYJK+DIBdNZvZBdVymHYAZ5uRYew LY5N/VnM16OJ9JBQr6F7O2YPonbIwfBwGW0NtB7C2mRthYg9T5GQFFBBNTmYH4p8oQwC R/xq1v5lMsZlzH5qLOrOxxGkRCFvSlEhXcPut+ib0kC0Uffd9044plrnKZqBDVe/HaU1 wrnknL31AMkwiEd/sr/4oSODlJqz5azGVeQK4xj1109ftnEgHb2FcSeLCu8fWbMQXemL szHZjKpRdQwCy7lLhWuA6cIeNkYrcXt4jwKB8+PfCp1bc4xnw77VXYYcbfdMX7U0xnK/ P1Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ewjap9et99muqwttRHnVFf0GRMb/C/2cnXyOstgyFh0=; b=zPoKbTnMvCIYc1QAg9pqgk3XFdS+dfEhxxyHo5yeQvXPnKtuAWyZzUlAmFsJhzrgmN 9fEcPYUK6/nM7fCdKTYT+0w7AmHP+2aPqno44NupqsqPsPKoGy7bL5QGFzFi56NE4EYb eTBSALhlGF5TutK3N4OLggn66ubR21jRxwoQUzBlUj7AfPcWEznwCTK4n2ZOe75lf69P 8iY+fkBeB74INvk8hILPzgTXo6Guocw+gIbElzsFJeV+vQbxEg3c8LLEFFVw30/mxZR6 DVZbcZSHI9lURxWlMf5Fq26+D/4X0DomyzATmoRE7GPGDE9/31C2iEjw7gWy3b1pDECW D1FQ== X-Gm-Message-State: AOAM530NGAiwUcD6A4cYGSkiVABW1Kg/MNJ+72+4pqTO8AZ4rlOk72uf cDjDZgTO/2iEjNg8C9BdftpunCjHAT0y3ZTJfaw= X-Google-Smtp-Source: ABdhPJz28v87aQH/+6bFNeAWMGvErXtNXx3BWc3bCpPvPqawXVHpYF3HSbExR13y+HXS6RIm3UkMQdmaOIE/jd5UZqw= X-Received: by 2002:a63:5a58:0:b0:3fb:b455:ed15 with SMTP id k24-20020a635a58000000b003fbb455ed15mr405639pgm.228.1653631405163; Thu, 26 May 2022 23:03:25 -0700 (PDT) MIME-Version: 1.0 References: <87ilprfsau.fsf@gmail.com> In-Reply-To: <87ilprfsau.fsf@gmail.com> From: Shitikanth Date: Fri, 27 May 2022 11:33:17 +0530 Message-ID: Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' To: Visuwesh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 55655 Cc: Stefan Monnier , 55655@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: -0.8 (/) Great news! That's exactly what I needed Thanks for pointing that out! On Fri, 27 May 2022 at 11:09, Visuwesh wrote: > > [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=AE=E0=AF= =87 27, 2022] Shitikanth wrote: > > >>Could you give some more details about the use case that actually > > affects you > > > > I just have a couple of different configs and use them with > > "emacs -Q --load $config_dir/init.el" and set the user-emacs-directory > > early in "$config_dir/init.el". This was also the easiest way to try ou= t > > other people's configs without disturbing your own. > > > > I guess I was always aware that this was an abuse of the init system, > > so if this is an intended change, you can close the bug report. > > > > FWIW, Emacs 29 added a --init-directory flag for these purposes. Here's > the NEWS entry of the change, > > ** Emacs now supports setting 'user-emacs-directory' via '--init-dire= ctory'. From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 08:30:00 2022 Received: (at 55655) by debbugs.gnu.org; 27 May 2022 12:30:00 +0000 Received: from localhost ([127.0.0.1]:33022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuZ6O-0000vq-H2 for submit@debbugs.gnu.org; Fri, 27 May 2022 08:30:00 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuZ6L-0000vQ-IQ for 55655@debbugs.gnu.org; Fri, 27 May 2022 08:29:58 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CD1A9100130; Fri, 27 May 2022 08:29:51 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5A3E51001D2; Fri, 27 May 2022 08:29:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1653654590; bh=FTnG4B3CnFypyf/DGJRqSJ45BXI/Xc7xPeTvXXgwa1E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=csLx4QoOY6OVRsrIMVVPAX0sb7LVG78rtjsd/U++Ul3c/5oEYJk3D4cSNUGBdAFT6 tGCGlTez267wckNSPMv2Mustl3JQrxDaBye7zOzzmv3/2ym8+2Iq4s1dV8zmUG+GcK h1gbh1IVf48dt+qsz5dwu6B6VXdJ9HG3aFoidIUh4hj7+KxUjHuFMb8QZfe5t3czpm IA23/7lkkthymAjSuO+ZHtDxV604zf3VWpC5jFViZ7NJxhz/Kq7rnTR2soKoo65aX/ rzLbSmZ7RMz+iyMhQEMcby4kFWDbjpHJjGfgDyhOX4X6XzemPJeY68h5YfFkYSy2cG IwpkXiV57LFcA== Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 32D7B120201; Fri, 27 May 2022 08:29:50 -0400 (EDT) From: Stefan Monnier To: Shitikanth Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' Message-ID: References: Date: Fri, 27 May 2022 08:29:43 -0400 In-Reply-To: (Shitikanth's message of "Fri, 27 May 2022 10:40:53 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.043 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55655 Cc: 55655@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 (---) >>Could you give some more details about the use case that actually >> affects you > > I just have a couple of different configs and use them with > "emacs -Q --load $config_dir/init.el" and set the user-emacs-directory > early in "$config_dir/init.el". This was also the easiest way to try out > other people's configs without disturbing your own. I see... for this specific case `--init-directory` or `--user` might work better. > I guess I was always aware that this was an abuse of the init system, > so if this is an intended change, you can close the bug report. What you see is not exactly an "intended change" in the sense that it would be good to make it behave the way you want to in your case. But it's not straightforward: `package-user-directory` is now predefined in the dumped Emacs. Obviously it does need to be (re)computed at startup (since your $HOME was not know when Emacs was dumped), but we do that at the very beginning before processing `--eval` or loading init files. For your case to work properly, we'd need to delay the (re)computation of `package-user-directory` to do it more lazily. It doesn't seem impossible to do, but it might be tricky and risks introducing other problems. You can workaround the problem by explicitly calling (custom-reevaluate-setting 'package-user-directory) after you've set `user-emacs-directory`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 21:41:09 2023 Received: (at 55655-done) by debbugs.gnu.org; 13 Sep 2023 01:41:09 +0000 Received: from localhost ([127.0.0.1]:60344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgEsP-0004NC-50 for submit@debbugs.gnu.org; Tue, 12 Sep 2023 21:41:09 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:59689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgEsL-0004MY-CA for 55655-done@debbugs.gnu.org; Tue, 12 Sep 2023 21:41:07 -0400 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bcd7a207f7so100333681fa.3 for <55655-done@debbugs.gnu.org>; Tue, 12 Sep 2023 18:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694569254; x=1695174054; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=gFk9IJNVtvYYQxjA81siEex5sKRcaveIGn935/mfCgU=; b=DtLbnKCzRux5DfebVlt/b4V/5kW7bO362UkstQ4OrJzlc/1OBLQkqBheHjBAouVTtY Zd11jkxOC9KGjvALPU3cydTNoCKzcdnd3hOHcV1PvJlIIOj6rlvzgFsaT1jSZ86X4ZBP VsN7wx96LIPelxXXvfe5Fpj+6boecw/VP4gJx4Zwlx4zLMHauEeBbKKNK2DwaMrItfhn oMNeWrrIUfZn8UURYulao6k5QQqfsfDmZRjlC7VavOsS+wBA8MM8YEAto5xXTWWO/X7E oNIxZ6vHz++HX3KuS9loqQp4d1XbTuelOqw2/Wk4KFvHeNLiJzcPpXSrFkrFQD++L0rq 5f1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694569254; x=1695174054; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gFk9IJNVtvYYQxjA81siEex5sKRcaveIGn935/mfCgU=; b=txbbDVpdTnTyKZzBbQHF3YBt7snJPwDl7pdXLRkleT0YJ8UTRZ2O20Z0+cAQ7cUt37 W5SqMYbXawdvJn8CyGhs6bkD9tOaXPRTtkjbN+yjHj4DTOh/kw8wD+Xk3y35NK+/VcOW jCsSY6HO3aAuYLEaNMxKdvZB2kAF/fwbHUYDCTWN6GDvPcKenweKVFmFeeGCX9Qi9+2Y KT1cuuwjepS92khzW5UBGAT+vPLBNBLO5b3DgJhQv+4ZTgZ44kR7N/g6RhmYPIjvW2lN A2rys35pePo4gUNE1KnCgH0Ib54fu+jShfqdBsmvLoWtUl3lDfPaxUje572lXSiJThMw YM4Q== X-Gm-Message-State: AOJu0YxNadbd1iot1e3Po6tUkIVxjWboDR+wIO9dLuQJE5vkdWaFk79x E+5LIDlstjBWDCt43Iwl8+bmwQ/lmH7dc6xADgI= X-Google-Smtp-Source: AGHT+IHcjr+X2nHc7a4GPZ8NvWzcQ5pV5kH+Zjbj5HyHkdfVfk8xiUY6B9Czggl3GFLXMYNrsjsjJU82v2tCCMsNX9M= X-Received: by 2002:a2e:8199:0:b0:2bc:be3c:9080 with SMTP id e25-20020a2e8199000000b002bcbe3c9080mr1247324ljg.27.1694569253960; Tue, 12 Sep 2023 18:40:53 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 12 Sep 2023 18:40:53 -0700 From: Stefan Kangas In-Reply-To: (Shitikanth's message of "Fri, 27 May 2022 11:33:17 +0530") References: <87ilprfsau.fsf@gmail.com> MIME-Version: 1.0 Date: Tue, 12 Sep 2023 18:40:53 -0700 Message-ID: Subject: Re: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' To: Shitikanth Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55655-done Cc: 55655-done@debbugs.gnu.org, Stefan Monnier , Visuwesh 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.0 (-) Shitikanth writes: > Great news! That's exactly what I needed > > Thanks for pointing that out! Great. I'm therefore closing this bug report. > On Fri, 27 May 2022 at 11:09, Visuwesh wrote: >> >> [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=AE=E0=AF= =87 27, 2022] Shitikanth wrote: >> >> >>Could you give some more details about the use case that actually >> > affects you >> > >> > I just have a couple of different configs and use them with >> > "emacs -Q --load $config_dir/init.el" and set the user-emacs-directory >> > early in "$config_dir/init.el". This was also the easiest way to try o= ut >> > other people's configs without disturbing your own. >> > >> > I guess I was always aware that this was an abuse of the init system, >> > so if this is an intended change, you can close the bug report. >> > >> >> FWIW, Emacs 29 added a --init-directory flag for these purposes. Here's >> the NEWS entry of the change, >> >> ** Emacs now supports setting 'user-emacs-directory' via '--init-dir= ectory'. From unknown Tue Jun 17 20:19:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Oct 2023 11: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