From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shitikanth Newsgroups: gmane.emacs.bugs Subject: bug#55655: 28.1; package.el no longers respects `user-emacs-directory' Date: Thu, 26 May 2022 18:49:53 +0530 Message-ID: References: <834k1cpl8r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55655@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 15:21:16 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 1nuDQR-0001bp-Uh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 15:21:15 +0200 Original-Received: from localhost ([::1]:41252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuDQQ-0001ZO-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 09:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDQE-0001ZG-Mx for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuDQE-00076D-D2 for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuDQE-00047n-9n for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 09:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shitikanth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 May 2022 13:21: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.165357121115756 (code B ref 55655); Thu, 26 May 2022 13:21:02 +0000 Original-Received: (at 55655) by debbugs.gnu.org; 26 May 2022 13:20:11 +0000 Original-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 Original-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 Original-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) In-Reply-To: <834k1cpl8r.fsf@gnu.org> 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:233111 Archived-At: 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.