[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: which one to use: custom-set-variables, customize-set-variable, or c
From: |
Lele Gaifax |
Subject: |
Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value? |
Date: |
Sat, 12 Dec 2015 09:31:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
>> While it seems working as expected, I like to hear other's opinion: do you
>> see any problem with this approach?
>
> You can do that. But I would advise just using `customize-set-variable'
> for a user option, and using `setq' or `setq-default' etc. for non-options.
>
> That is much more readable in your code, IMO.
Ok, thanks, I will rethink my step.
> And no, you do not ever need to "check each variable documentation to
> see the right way to set its value". (And you should anyway not rely
> on a variable's documentation for that.)
How's it that possible? How can then I know when to use `setq', `setq-default'
or `customize-set-variable'?
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
- Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, Lele Gaifax, 2015/12/11
- RE: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, Drew Adams, 2015/12/11
- Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?,
Lele Gaifax <=
- RE: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, Drew Adams, 2015/12/12
- Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, tomas, 2015/12/13
- RE: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, Drew Adams, 2015/12/13
- Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, Lele Gaifax, 2015/12/14
- Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?, B.V. Raghav, 2015/12/14