From: Lele Gaifax <lele@metapensiero.it>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <87lh90nk3u.fsf@metapensiero.it> (raw)
In-Reply-To: 63e721db-3901-4017-a254-a679a4d8d04e@default
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.
next prev parent reply other threads:[~2015-12-12 8:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-29 18:47 which one to use: custom-set-variables, customize-set-variable, or customize-set-value? Alan Schmitt
2015-11-29 19:19 ` Drew Adams
2015-11-30 8:52 ` Alan Schmitt
2015-11-30 15:20 ` Drew Adams
2015-11-30 15:44 ` Alan Schmitt
2015-12-11 18:23 ` Lele Gaifax
2015-12-11 18:53 ` Drew Adams
2015-12-12 8:31 ` Lele Gaifax [this message]
2015-12-12 12:09 ` tomas
2015-12-12 13:31 ` Lele Gaifax
2015-12-12 16:11 ` Drew Adams
2015-12-13 8:17 ` tomas
2015-12-13 17:32 ` Drew Adams
2015-12-14 2:44 ` B.V. Raghav
2015-12-14 8:28 ` Lele Gaifax
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lh90nk3u.fsf@metapensiero.it \
--to=lele@metapensiero.it \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).