[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom-set-variables considered harmful
From: |
Stefan Monnier |
Subject: |
Re: custom-set-variables considered harmful |
Date: |
Fri, 24 Nov 2017 02:16:13 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Is there a particular reson you're not using ‘customize-set-variable’
> for all values?
Because I want the code to look as much as possible like "manually
written Elisp", and `setq` is what is used in 99% of the Elisp
customization code.
> It would be more consistent, and also avoid problems
> in case a package is changed and a setter function is added to
> a variable which previously did not use it.
Note that as long as the `setq` is within the magical
custom-autogenerated-user-settings form, it will behave correctly even
if the variable has a setter function. The difference will only affect
those users who take this code and then copy it elsewhere.
Stefan
- Re: custom-set-variables considered harmful, (continued)
Re: custom-set-variables considered harmful, Stefan Monnier, 2017/11/13
- Re: custom-set-variables considered harmful, Elias Mårtenson, 2017/11/24
- Re: custom-set-variables considered harmful, Elias Mårtenson, 2017/11/26
- RE: custom-set-variables considered harmful, Drew Adams, 2017/11/26
- Re: custom-set-variables considered harmful, Philippe Vaucher, 2017/11/28
- Re: custom-set-variables considered harmful, John Wiegley, 2017/11/28
- Re: custom-set-variables considered harmful, Elias Mårtenson, 2017/11/28
- Re: custom-set-variables considered harmful, Stefan Monnier, 2017/11/29
- RE: custom-set-variables considered harmful, Drew Adams, 2017/11/29
- Re: custom-set-variables considered harmful, Elias Mårtenson, 2017/11/29