[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Option to not automatically customize-save-variable `package-selecte
From: |
Artur Malabarba |
Subject: |
Re: Option to not automatically customize-save-variable `package-selected-packages' |
Date: |
Fri, 19 Feb 2016 11:04:23 -0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> Is package--save-selected-packages called every time package.el is
> invoked, even if the user doesn't change the list of the selected
> packages?
No. But it is called every time the list changes (either by installing
or deleting a package).
> Otherwise, the user could install a package, edit their .emacs to
> convert the custom-set-variables forms into setq, [...] like
> they have to do with any other customization that is system-dependent.
>
> Will this solve the issue?
No, because package.el will still call `package--save-selected-packages'
even though the variable has been set via `setq'. This will keep
modifying the custom file, and the behaviour will depend on whether when
the variable's value has been most recently set from the `setq' or from
Custom.
Meanwhile, with regular customizations, the user can just turn the
`custom-set-variables' call into a `setq' and trust that Emacs won't
reintroduce that variable there.
- Re: Option to not automatically customize-save-variable `package-selected-packages', (continued)
- Re: Option to not automatically customize-save-variable `package-selected-packages', Artur Malabarba, 2016/02/18
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/18
- Re: Option to not automatically customize-save-variable `package-selected-packages', Joost Kremers, 2016/02/18
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/18
- Re: Option to not automatically customize-save-variable `package-selected-packages', Joost Kremers, 2016/02/18
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Angelo Graziosi, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages',
Artur Malabarba <=
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Artur Malabarba, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Kaushal Modi, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/19
- Re: Option to not automatically customize-save-variable `package-selected-packages', Joost Kremers, 2016/02/21
- Re: Option to not automatically customize-save-variable `package-selected-packages', John Wiegley, 2016/02/21
- Re: Option to not automatically customize-save-variable `package-selected-packages', Eli Zaretskii, 2016/02/21
- Re: Option to not automatically customize-save-variable `package-selected-packages', Bastian Beischer, 2016/02/22
- Re: Option to not automatically customize-save-variable `package-selected-packages', alex, 2016/02/18