all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: which one to use: custom-set-variables, customize-set-variable, or customize-set-value?
Date: Mon, 30 Nov 2015 09:52:13 +0100	[thread overview]
Message-ID: <m2610j27k2.fsf@polytechnique.org> (raw)
In-Reply-To: <b37bab4b-366e-499e-ac8b-3d3cc2bfd2d6@default> (Drew Adams's message of "Sun, 29 Nov 2015 11:19:10 -0800 (PST)")

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

Hello Drew,

On 2015-11-29 20:19, Drew Adams <drew.adams@oracle.com> writes:

>> I recently read a message where, if I read it correctly, it was
>> recommended to use `customize-set-variable' and `customize-set-value'
>> to change settings in an init file while playing nice with the
>> custom system. I looked at their documentation and I have trouble 
>> understanding how they differ. I see there is also
>> `custom-set-variables' which has a different signature.
>> 
>> So my question is: should I use `setq', `customize-set-variable',
>> `customize-set-value', or `custom-set-variables' to change in my
>> init file variables that exist in the custom ecosystem?
>
> Good question!  Here is my understanding, which might not be
> 100% correct:

Thank you for the explanation. For the moment I'm sticking with
`customize-set-variable' and I'll see if I get in trouble.

> I agree that the doc is not very clear.  Recently I forgot
> that `customize-set-value' does not use the defcustom's :set
> function, and I was bitten by the fact that it does not.

I'm curious about this: what is the scenario where this can be
a problem?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated November 22, 2015, Mauna Loa Obs.): 400.35 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

  reply	other threads:[~2015-11-30  8:52 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 [this message]
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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2610j27k2.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=drew.adams@oracle.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.