From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables considered harmful Date: Thu, 23 Nov 2017 12:12:18 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511471427 22930 195.159.176.226 (23 Nov 2017 21:10:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Nov 2017 21:10:27 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0 (darwin) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 23 22:10:21 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 1eHylI-0005TP-KB for ged-emacs-devel@m.gmane.org; Thu, 23 Nov 2017 22:10:20 +0100 Original-Received: from localhost ([::1]:46052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHylP-0000hu-OI for ged-emacs-devel@m.gmane.org; Thu, 23 Nov 2017 16:10:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHylE-0000he-8S for emacs-devel@gnu.org; Thu, 23 Nov 2017 16:10:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHylA-0004r1-6z for emacs-devel@gnu.org; Thu, 23 Nov 2017 16:10:16 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHylA-0004qn-2T; Thu, 23 Nov 2017 16:10:12 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:37431) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1eHyl9-0008Vo-Pe; Thu, 23 Nov 2017 16:10:11 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 48F4B20CCD; Thu, 23 Nov 2017 16:10:11 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 23 Nov 2017 16:10:11 -0500 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id D9C01240F8; Thu, 23 Nov 2017 16:10:10 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Sat, 04 Nov 2017 13:10:11 -0400") Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220412 Archived-At: >>>>> "SM" == Stefan Monnier writes: SM> The idea is basically to use a syntax which happens to look close to what SM> you'd write by hand if you weren't using Customize, so that users who SM> copy&paste snippets of code end up copying more or less valid code, SM> instead of copying "code" like SM> '(toot 2) SM> and then be surprised that it doesn't do anything. I like the idea. It turns the body of the customization block into a different DSL than "oddly specialized list" so pieces of it can be safely excerpted. I assume the ordering becomes important, so the REQUIRE statement only affects the immediately following setting? -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2