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#55655: 28.1; package.el no longers respects `user-emacs-directory' Date: Thu, 26 May 2022 16:55:23 +0300 Message-ID: <83wne8o0tw.fsf@gnu.org> References: <834k1cpl8r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1194"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55655@debbugs.gnu.org To: Shitikanth , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 15:56:28 2022 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 1nuDyW-000AdQ-Hs for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 15:56:28 +0200 Original-Received: from localhost ([::1]:57364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuDyU-0007HY-VR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 09:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDy7-0007F9-00 for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuDy6-0005mB-GZ for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuDy6-0005Yd-Ei for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 May 2022 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55655 X-GNU-PR-Package: emacs Original-Received: via spool by 55655-submit@debbugs.gnu.org id=B55655.165357335421357 (code B ref 55655); Thu, 26 May 2022 13:56:02 +0000 Original-Received: (at 55655) by debbugs.gnu.org; 26 May 2022 13:55:54 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: (message from Shitikanth on Thu, 26 May 2022 18:49:53 +0530) 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" Xref: news.gmane.io gmane.emacs.bugs:233112 Archived-At: > 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?