From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Customize Rogue Date: Wed, 12 Mar 2003 13:38:39 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303121838.h2CIcdbu016193@rum.cs.yale.edu> References: <20030309185419.2506.LEKTU@terra.es> <200303091825.MAA13028@eel.dms.auburn.edu> <20030309194520.250C.LEKTU@terra.es> <200303111907.h2BJ7fI8012285@rum.cs.yale.edu> <200303120126.TAA15006@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047494618 21880 80.91.224.249 (12 Mar 2003 18:43:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 18:43:38 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 12 19:43:36 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 18tBCP-0005gc-00 for ; Wed, 12 Mar 2003 19:43:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18tBZi-0001Tn-00 for ; Wed, 12 Mar 2003 20:07:41 +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 18tBCn-00057a-04 for emacs-devel@quimby.gnus.org; Wed, 12 Mar 2003 13:43:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tBBH-0004BD-00 for emacs-devel@gnu.org; Wed, 12 Mar 2003 13:42:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tB7n-0001iP-00 for emacs-devel@gnu.org; Wed, 12 Mar 2003 13:38:48 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tB7h-0001cy-00; Wed, 12 Mar 2003 13:38:41 -0500 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h2CIcdPe016195; Wed, 12 Mar 2003 13:38:39 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h2CIcdbu016193; Wed, 12 Mar 2003 13:38:39 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Luc Teirlinck Original-cc: lektu@terra.es Original-cc: rms@gnu.org Original-cc: emacs-devel@gnu.org 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:12313 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12313 > Most uses of :set are for things like minor-mode (where using > define-minor-mode has the advantage of providing a standard way > to deal with it), the others should be replaced. > > Since every Lisp symbol can at the same time be a variable and a > function, it would have been nice if every variable my_favorite_symbol > with a :set function, would have an associated function > my_favorite_symbol and if that function behaved in exactly the same > way as minor mode functions for variables of boolean type and if, for > non-boolean type variables, (my_favorite_symbol value) would be > equivalent with setting the variable my_favorite_symbol to VALUE > through customize: > > :set #'funcall > > But I guess it is much too late to enforce anything like this, even if > it were deemed desirable. Hey, now, there's a great idea. We could add some code in defcustom so that it complains when the value of :set is not a symbol (which would ensure that whatever the :setter is, it can always be called easily from elisp). Stefan