bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Stefan Kangas
Subject: bug#65475: 29.1; package-selected-packages variable is not updated when the last package is deleted
Date: Sat, 26 Aug 2023 14:07:05 +0200

Philip Kaludercic <philipk@posteo.net> writes:

> >  (defun package--save-selected-packages (&optional value)
> >    "Set and save `package-selected-packages' to VALUE."
> > -  (when value
> > +  (when (or value after-init-time)
> >      (setq package-selected-packages value))
> >    (if after-init-time
> >        (customize-save-variable 'package-selected-packages
> > package-selected-packages)
>
> It seems to be that this should also work, given that
> `package--save-selected-packages' is a package.el internal function, and
> there are no assurances that the current behaviour is to be expected in
> this edge-case.

Given the docstring "Set and save `package-selected-packages' to
VALUE.", it is my impression that the above patch would simply fix a
regression introduced in d0a5162fd825.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]