[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24467: 25.1; package
From: |
Stefan Monnier |
Subject: |
bug#24467: 25.1; package |
Date: |
Sat, 03 Nov 2018 11:07:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> Ah, so the packages are "new" in the sense that they come from
>> archives added after package-initialize was called.
>
> I'm not sure whether this is by design and if we would break something
> if we changed it. I think the fix would be quite trivial: simply
> speaking, we would change `package-read-all-archive-contents' to iterate
> over "$package-user-dir/archives/*" instead of `package-archives'.
It's clearly a bug, and it's made worse in Emacs-27 where
package-initialize is called automatically before reading ~/.emacs.
IOW, I think "this" needs to be fixed before Emacs-27.1.
The fix you propose might work (tho with unintended side effects), but
I don't see any reason why we need to package-read-all-archive-contents
so early on anyway. More specifically, package-activate-all should be
changed so it doesn't end up running package-read-all-archive-contents:
it's already the case when a package-quickstart-file is found, but if
there's no such file we call package-initialize which ends up calling
package-read-all-archive-contents even though we're only interested in
the package-load-all-descriptors part, really.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24467: 25.1; package,
Stefan Monnier <=