[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65475: 29.1; package-selected-packages variable is not updated when
From: |
Eshel Yaron |
Subject: |
bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted |
Date: |
Tue, 05 Sep 2023 19:39:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Philip Kaludercic <philipk@posteo.net> writes:
> Eshel Yaron <me@eshelyaron.com> writes:
>
>> FWIW, I get the same non-empty `package-selected-packages` with Emacs
>> master built from source. Indeed it looks like this issue isn't fully
>> fixed yet.
>
> Even if 610105ee81bbf79f72d4efb46d0caddf8d654cf1 was applied?
Of course.
>
> Can you edebug the function and see if it behaves the way it should
> (evaluating the setq expression)?
>
AFAICT, `package--save-selected-packages` works fine now. The problem
is elsewhere.
Namely, when deleting the last package with `package-delete`, what
happens is that `package--save-selected-packages` gets called twice.
The first time, it's called by `package--save-selected-packages` with a
nil argument. This works as expected and sets
`package-selected-packages` to nil.
But then, `package--save-selected-packages` is called again by
`package--used-elsewhere-p` through `package-desc-status` and
`package--user-selected-p`, this time with a non-nil value `(chess)`
that's taken from `package-alist`, which is not yet updated at this
point in `package-delete`. So `package-selected-packages` gets reset to
a non-nil value.
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Kangas, 2023/09/02
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Andrey Samsonov, 2023/09/04
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Eshel Yaron, 2023/09/04
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/05
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted,
Eshel Yaron <=
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Kangas, 2023/09/05
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/10
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Monnier, 2023/09/10
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/13
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Monnier, 2023/09/13
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Kangas, 2023/09/13
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/14
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Stefan Kangas, 2023/09/14
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/15
- bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted, Philip Kaludercic, 2023/09/21