From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Customize Rogue Date: Wed, 12 Mar 2003 18:27:51 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303130027.SAA15736@eel.dms.auburn.edu> References: <20030309185419.2506.LEKTU@terra.es> <200303091825.MAA13028@eel.dms.auburn.edu> <20030309194520.250C.LEKTU@terra.es> <200303111907.h2BJ7fI8012285@rum.cs.yale.edu> <200303121838.h2CIcdbu016193@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1047515399 20775 80.91.224.249 (13 Mar 2003 00:29:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2003 00:29:59 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 13 01:29:56 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 18tGbc-0005Ol-00 for ; Thu, 13 Mar 2003 01:29:56 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18tGz5-0005iT-00 for ; Thu, 13 Mar 2003 01:54:11 +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 18tGZm-0000PF-02 for emacs-devel@quimby.gnus.org; Wed, 12 Mar 2003 19:28:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tGZO-0000GS-00 for emacs-devel@gnu.org; Wed, 12 Mar 2003 19:27:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tGZ0-0008Ra-00 for emacs-devel@gnu.org; Wed, 12 Mar 2003 19:27:15 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tGYj-0008Kq-00; Wed, 12 Mar 2003 19:26:57 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) h2D0QsB10592; Wed, 12 Mar 2003 18:26:54 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id SAA15736; Wed, 12 Mar 2003 18:27:51 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200303121838.h2CIcdbu016193@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Original-cc: lektu@terra.es Original-cc: rms@gnu.org Original-cc: emacs-devel@gnu.org 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:12325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12325 Stefan Monnier wrote: 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). What would you do with minor-mode type variables for which define-minor-mode currently produces: :set (lambda (symbol value) (funcall symbol (or value 0))) to replace a value of nil of the variable by 0? Name that lambda function for internal use by defcustom? Sincerely, Luc.