From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables considered harmful Date: Fri, 24 Nov 2017 02:16:13 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511507804 9536 195.159.176.226 (24 Nov 2017 07:16:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2017 07:16:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 24 08:16:37 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 1eI8Dz-0001nP-KJ for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2017 08:16:35 +0100 Original-Received: from localhost ([::1]:47556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eI8E5-0007Zu-6U for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2017 02:16:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eI8Dx-0007Zb-DF for emacs-devel@gnu.org; Fri, 24 Nov 2017 02:16:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eI8Ds-00050n-Ew for emacs-devel@gnu.org; Fri, 24 Nov 2017 02:16:33 -0500 Original-Received: from [195.159.176.226] (port=50563 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eI8Ds-0004zU-8B for emacs-devel@gnu.org; Fri, 24 Nov 2017 02:16:28 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eI8Df-0000ib-BC for emacs-devel@gnu.org; Fri, 24 Nov 2017 08:16:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Dyo6//4YvrX1AXyKIq6Qtj1bz1M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:220417 Archived-At: > Is there a particular reson you're not using ‘customize-set-variable’ > for all values? Because I want the code to look as much as possible like "manually written Elisp", and `setq` is what is used in 99% of the Elisp customization code. > It would be more consistent, and also avoid problems > in case a package is changed and a setter function is added to > a variable which previously did not use it. 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. The difference will only affect those users who take this code and then copy it elsewhere. Stefan