From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Shitikanth <shitikanth1@gmail.com>
Cc: 55655@debbugs.gnu.org
Subject: bug#55655: 28.1; package.el no longers respects `user-emacs-directory'
Date: Thu, 26 May 2022 11:29:12 -0400 [thread overview]
Message-ID: <jwvv8tsb9ls.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CALjXJSTak5R1DvxvKpX+jmLNBTSrpC-+qqTVUG7pMxAETu44dA@mail.gmail.com> (Shitikanth's message of "Thu, 26 May 2022 16:37:48 +0530")
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
next prev parent reply other threads:[~2022-05-26 15:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-26 11:07 bug#55655: 28.1; package.el no longers respects `user-emacs-directory' Shitikanth
2022-05-26 11:49 ` Eli Zaretskii
2022-05-26 13:19 ` Shitikanth
2022-05-26 13:55 ` Eli Zaretskii
2022-05-26 15:29 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-05-27 5:10 ` Shitikanth
2022-05-27 5:39 ` Visuwesh
2022-05-27 6:03 ` Shitikanth
2023-09-13 1:40 ` Stefan Kangas
2022-05-27 12:29 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvv8tsb9ls.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=55655@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=shitikanth1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.