From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.devel Subject: Re: custom-set-variables considered harmful Date: Sat, 02 Dec 2017 07:56:50 +0200 Message-ID: <87zi71sme5.fsf@iki.fi> References: <8782ed42-3aec-4111-b4f0-471c838e7370@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1512194315 32011 195.159.176.226 (2 Dec 2017 05:58:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2017 05:58:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Philippe Vaucher , =?iso-8859-1?Q?Elias_M=E5rt?= =?iso-8859-1?Q?enson?= , Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 02 06:58: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 1eL0oi-0007jw-HG for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2017 06:58:24 +0100 Original-Received: from localhost ([::1]:34464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL0op-0000fo-Km for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2017 00:58:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL0nl-0000a3-R3 for emacs-devel@gnu.org; Sat, 02 Dec 2017 00:57:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eL0nP-0006GN-2D for emacs-devel@gnu.org; Sat, 02 Dec 2017 00:57:25 -0500 Original-Received: from mta-out1.inet.fi ([62.71.2.233]:38544 helo=johanna1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL0nO-00067W-K9 for emacs-devel@gnu.org; Sat, 02 Dec 2017 00:57:02 -0500 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond (109.240.39.207) by johanna1.inet.fi (9.0.002.03-2-gbe5d057) id 5A1F39240046636E; Sat, 2 Dec 2017 07:56:54 +0200 In-Reply-To: <8782ed42-3aec-4111-b4f0-471c838e7370@default> (Drew Adams's message of "Wed, 29 Nov 2017 07:03:39 -0800 (PST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 62.71.2.233 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:220608 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Drew Adams [2017-11-29 07:03:39-08] wrote: > Here's a crazy possibility (not a suggestion, but maybe food for > thought): Make `setq' do `customize-set-variable' for an option and do > what it does now otherwise. That would be a job for setf, I think, because it is generalized assignment macro. Common Lisp's setf works with setter functions and in the same spirit it could work with Emacs's custom setters. =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkhZiiC54Bnj5a16Skzo1BB5+rVEFAloiQKIACgkQkzo1BB5+ rVEnuQf5AeR7ylPQrN3gQYzmvclOZCn4y8TswGEHI3gYsmXIxR0Eh3D2gxiui4r3 UNNay5+RXmzi4ymXQ2npCQ9H4xUVGK5eowba9YVvQ5fJ9knFfXjRfxyLsn2q0cpD x2ZXY0JYHgixzhyKSRpFIP5uOvVWRYnQh3CY2HThWzpSdozpEPod0RiFGYEV82uA 0BrNFP0YGG92lVvRL2tWGC5cypFVS3C+WXFxWZ7+iagqev10uMKzbX3F35ZpAIaK pb0ybWMiSWHDZD63scnAqshqgg2Xo6mAO6StJAQHqhK11r37YhytpMAh3GuED+WO hGi5aFgmYIJf3/ja4wUX5e4xu86KOw== =0lku -----END PGP SIGNATURE----- --=-=-=--