From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: custom-set-variables considered harmful Date: Sun, 26 Nov 2017 08:30:14 -0800 (PST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1511713870 17897 195.159.176.226 (26 Nov 2017 16:31:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2017 16:31:10 +0000 (UTC) Cc: emacs-devel To: =?utf-8?B?RWxpYXMgTcOlcnRlbnNvbg==?= , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 26 17:31:07 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIzpi-0004Pj-7r for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2017 17:31:06 +0100 Original-Received: from localhost ([::1]:57182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIzpp-0002Dq-Ft for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2017 11:31:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIzp4-0002Ad-2t for emacs-devel@gnu.org; Sun, 26 Nov 2017 11:30:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIzoz-0006DZ-Vk for emacs-devel@gnu.org; Sun, 26 Nov 2017 11:30:26 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:34852) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIzoz-0006C1-OF for emacs-devel@gnu.org; Sun, 26 Nov 2017 11:30:21 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAQGUHhK005813 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 26 Nov 2017 16:30:18 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAQGUH0M030716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 26 Nov 2017 16:30:17 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAQGUGh1021570; Sun, 26 Nov 2017 16:30:16 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4615.0 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220467 Archived-At: > The fact that a lot of people use setq isn't really > a great argument for using it in this case. The > reason people use setq isn't because they want to, > but because they don't understand how custom works. > I see this as a great opportunity to make c-s-v > more visible and teach people how to use it.=C2=A0 > > 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.=C2=A0 The difference will only affect > those users who take this code and then copy it elsewhere. > > But setq doesn't have any concrete benefit other than > familiarity to people who don't understand custom. > I've spent more time than I wish on Freenode #emacs > teaching people about custom. If c-s-v was used > consistently that effort would be made a lot easier.=C2=A0 Couldn't have said it better myself. +10, all of it.