From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: Re: doc problems with defcustom Date: Tue, 8 Jun 2004 12:49:30 +0200 (CEST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <32597.217.194.34.123.1086691770.squirrel@wwws.franken.de> References: <20040608.073002.238272728.wl@gnu.org> <20040608.085847.173397309.wl@gnu.org> <200406081020.TAA08599@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1086691931 17391 80.91.224.253 (8 Jun 2004 10:52:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2004 10:52:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 08 12:52:01 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXeD3-0003zl-00 for ; Tue, 08 Jun 2004 12:52:01 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXeD2-0003UI-00 for ; Tue, 08 Jun 2004 12:52:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXeDc-0005Gl-Ul for emacs-devel@quimby.gnus.org; Tue, 08 Jun 2004 06:52:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXeDZ-0005Fe-Gp for emacs-devel@gnu.org; Tue, 08 Jun 2004 06:52:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXeDU-0005DD-3g for emacs-devel@gnu.org; Tue, 08 Jun 2004 06:52:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXeDU-0005Cm-0c for emacs-devel@gnu.org; Tue, 08 Jun 2004 06:52:28 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BXeCH-0005zj-3B for emacs-devel@gnu.org; Tue, 08 Jun 2004 06:51:13 -0400 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id 07251245C3; Tue, 8 Jun 2004 12:49:30 +0200 (CEST) Original-Received: from 217.194.34.123 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Tue, 8 Jun 2004 12:49:30 +0200 (CEST) In-Reply-To: <200406081020.TAA08599@etlken.m17n.org> Original-To: "Kenichi Handa" User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24718 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24718 Hi. Kenichi Handa said: > Isn't it possible to have a function, say > custom-set-variable, that sets a value and calls :set action There is: customize-set-variable is an interactive compiled Lisp function in `cus-edit'. (customize-set-variable variable value &optional comment) Set the default for variable to value, and return value. value is a Lisp object. If variable has a `custom-set' property, that is used for setting variable, otherwise `set-default' is used. The `customized-value' property of the variable will be set to a list with a quoted value as its sole list member. If variable has a `variable-interactive' property, that is used as if it were the arg to `interactive' (which see) to interactively read the value. If variable has a `custom-type' property, it must be a widget and the `:prompt-value' property of that widget will be used for reading the value. If given a prefix (or a comment argument), also prompt for a comment. -- Stephan Stahl