From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.help 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 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1448873570 9853 80.91.229.3 (30 Nov 2015 08:52:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2015 08:52:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 30 09:52:34 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a3KCH-0004IY-Sg for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Nov 2015 09:52:34 +0100 Original-Received: from localhost ([::1]:39626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3KCM-00032B-5J for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Nov 2015 03:52:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3KC4-0002pj-5Y for help-gnu-emacs@gnu.org; Mon, 30 Nov 2015 03:52:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3KBz-0005fX-6l for help-gnu-emacs@gnu.org; Mon, 30 Nov 2015 03:52:20 -0500 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:63548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3KBz-0005fE-1b for help-gnu-emacs@gnu.org; Mon, 30 Nov 2015 03:52:15 -0500 X-IronPort-AV: E=Sophos;i="5.20,364,1444687200"; d="asc'?scan'208";a="189654203" Original-Received: from charm-ecran.irisa.fr (HELO top.local) ([131.254.101.83]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 30 Nov 2015 09:52:13 +0100 In-Reply-To: (Drew Adams's message of "Sun, 29 Nov 2015 11:19:10 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.83 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108256 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Drew, On 2015-11-29 20:19, Drew Adams 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=20 >> understanding how they differ. I see there is also >> `custom-set-variables' which has a different signature. >>=20 >> 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated November 22, 2015, Mauna Loa Obs.): 400.3= 5 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWXA49AAoJEAQNCjtO0uXHTYQIAJi3ymE18fKjszX3Qs7+d5KB tJW2jbwOpBYmohnEgQ5bl+8G850KazyKlG2dFEnOrAmjV0jGYpmVX/Q7eeWjP9iG sF19nwLFUVsZNxwBpG0xQI3/b0DHvYr76F7mEi+aMOcEeO9w+60Uoryex5oQwa7m 0gtKM1ZUAGRHDRQftTV3kWF/q4WYibjfUDUDDkT0UutRR7368PV2JNnGusars7kk wd8Q763amFMJXFnnDMUXH0nsoa1GKS1CL1ttwbH653g0KH3wCKXPNtY4QoateteL o6zRwYh6i8NgP3wV9bMlf0KeFSan5Xm376lxKiRushM9MQ0QefrOfuQ7Fais/xA= =sXX8 -----END PGP SIGNATURE----- --=-=-=--