From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables considered harmful Date: Mon, 6 Nov 2017 10:02:29 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d2b129f186a055d4cb88a" X-Trace: blaine.gmane.org 1509959076 12654 195.159.176.226 (6 Nov 2017 09:04:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 09:04:36 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 06 10:04:29 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 1eBdKX-00031R-26 for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2017 10:04:29 +0100 Original-Received: from localhost ([::1]:47037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBdKe-0007KW-9m for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2017 04:04:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBdJ7-0006cq-Lp for emacs-devel@gnu.org; Mon, 06 Nov 2017 04:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBdJ6-0007oS-RX for emacs-devel@gnu.org; Mon, 06 Nov 2017 04:03:01 -0500 Original-Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]:53312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBdJ6-0007oC-MB for emacs-devel@gnu.org; Mon, 06 Nov 2017 04:03:00 -0500 Original-Received: by mail-vk0-x22d.google.com with SMTP id k195so5276066vke.10 for ; Mon, 06 Nov 2017 01:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NLQo3KvdvgSe0OE+XeE+wr5mlXojcorlMyr0Mch+PhQ=; b=IgoPhowWYJ+Sw6HuXX0NLUecuag4z8tI7UUrhVAT4Z7HtVMUSrewhCETp3DHuX+upS cCckUyXm71YBV9dbG/c+jmAG1ySjUoXORYdZRIzaCjnrkCL8BBjLzXUbH2aI/TPrqMOe 5ce81Bt4k2n7IaW5GI2CkLI+EhRPBNZ533J5JHtv9kflSjSYzWFCvt3nYrJOyh9zbX3x AOPd0MWej7tPK0q3gBu2Nt9KPOO40mTIY1YwJN8JhtRyJ57S/+4Vs7RPqwqk0oUJrFwm Hiy9NH3zFjizvO4C8rYQFCYeEYtdCfZA1l5o4T7af/fVOrAWDReUU0YJWJ4qzU9um9rO jMIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NLQo3KvdvgSe0OE+XeE+wr5mlXojcorlMyr0Mch+PhQ=; b=biNdrVwWOkPD+QfJVUiRAO7TTgUO+lULkJkQnSbcPjzRHKRRYhWTHB5tu+kjDkDx2i 5oWBDYILifIlKseGVVWtTb/wvGa50U5T+VRAROc4GaC0WYjGuD/b1EneoFNiBDRqsVzX 7jltFJ/H8fekI27AE4NhcZZgx0kIx9/Mi6TjHUa0P0RcdJI4Ihwh3yQse2/5o1bUPWYl srxMGgNFbZ5GNeCio3HmEW3RYzHbDQuRW1WbG6lrOvH+iVXGOcfilSV56MAkQgnpFUcr 0s9m9t3FLt5oF+k8Jtt8MK5pYBQEpX7NonX22ek/O4G6/YsJgmJgFRf8tfOM47wo0BBo Kw6Q== X-Gm-Message-State: AJaThX4KbnAz2r0WKHJVaQN8vzW7fUHk05/Cen+cIEaK0r9TRvdjlpjq 7ah6Bg4w2MQCVqtcZ21caU3iqziWoBbdol+4l3C6KQ== X-Google-Smtp-Source: ABhQp+TCGzBPMBugsk/vq8J1y/01B4kG5tLm29dMrUSacIrUrcU2mLAPRzskVpsgPHZ7lsEsxb9QB2y7fdZdfEu826g= X-Received: by 10.31.155.74 with SMTP id d71mr11068310vke.94.1509958979883; Mon, 06 Nov 2017 01:02:59 -0800 (PST) Original-Received: by 10.103.19.4 with HTTP; Mon, 6 Nov 2017 01:02:29 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c05::22d 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:219938 Archived-At: --001a113d2b129f186a055d4cb88a Content-Type: text/plain; charset="UTF-8" > The idea is basically to use a syntax which happens to look close to > what you'd write by hand if you weren't using Customize, so that users > who copy&paste snippets of code end up copying more or less valid code, > instead of copying "code" like > > '(toto 2) > > and then be surprised that it doesn't do anything. > Good idea! It's also consistent with "Show saved lisp expression" from customize buffers. In my case, I always delete the whole custom-set-variables block and move the relevant parts in my config, but have to transform the sexps into their `setq` equivalent, which is annoying. Philippe --001a113d2b129f186a055d4cb88a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

=
The idea is basically to = use a syntax which happens to look close to
what you'd write by hand if you weren't using Customize, so that us= ers
who copy&paste snippets of code end up copying more or less valid code,=
instead of copying "code" like

=C2=A0 =C2=A0 '(toto 2)

and then be surprised that it doesn't do anything.

Good idea! It's also consistent with "Show saved l= isp expression" from customize buffers.

In my= case, I always delete the whole custom-se= t-variables block and move the relevant parts in my config, but have to tra= nsform the sexps into their `setq` equivalent, which is annoying.

Philippe
--001a113d2b129f186a055d4cb88a--