From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.customize Subject: Re: Customize Rogue Date: Fri, 14 Mar 2003 00:59:37 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030310163108.44F9.LEKTU@terra.es> <200303110016.SAA14021@eel.dms.auburn.edu> <200303131534.JAA16193@eel.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1047621679 8913 80.91.224.249 (14 Mar 2003 06:01:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2003 06:01:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 14 07:01:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18tiFp-0002Ja-00 for ; Fri, 14 Mar 2003 07:01:17 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18tidu-0000PE-00 for ; Fri, 14 Mar 2003 07:26:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tiEe-0006Me-01 for emacs-devel@quimby.gnus.org; Fri, 14 Mar 2003 01:00:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tiEG-0006ES-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 00:59:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tiEE-00069z-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 00:59:39 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tiEE-00067z-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 00:59:38 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18tiED-0007io-00; Fri, 14 Mar 2003 00:59:37 -0500 Original-To: Luc Teirlinck In-reply-to: <200303131534.JAA16193@eel.dms.auburn.edu> (message from Luc Teirlinck on Thu, 13 Mar 2003 09:34:51 -0600 (CST)) Original-cc: emacs-custom@sunsite.dk Original-cc: abraham@dina.kvl.dk X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12352 gmane.emacs.customize:55 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12352 What I propose is that, if somebody writes a defcustom for a variable `foo' with a :set function, then, unless there already is an obvious well-known Lisp alternative, in which case there is no problem, the author of the defcustom should provide a function `foo' such that (foo value) is equivalent with setting foo to VALUE using defcustom. This naming convention would be a bad one. A name that fits well for the variable would be wrong for the function. I don't think that is reasonable, the function signature expected by :set is slightly different from the the function signature that would be most natural from Lisp. That is true also. In fact (decustom foo-bar-mode nil "Foo bar minor mode. Must be set with (foo-bar-mode VALUE) or through Customize." :type 'boolean :set (lambda (symbol value) (foo-bar-mode value))) is a good example of a simple lambda that is reasonable to use in a :set.