From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Creating recursive customization types / widgets Date: Sat, 29 Nov 2003 19:34:28 +0100 Organization: The Church of Emacs Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070131258 24000 80.91.224.253 (29 Nov 2003 18:40:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2003 18:40:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Nov 29 19:40:55 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQA1X-0002a4-00 for ; Sat, 29 Nov 2003 19:40:55 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQA1X-0007Xf-00 for ; Sat, 29 Nov 2003 19:40:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQAvL-00089W-Hf for emacs-devel@quimby.gnus.org; Sat, 29 Nov 2003 14:38:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQAuJ-0007Pk-HX for emacs-devel@gnu.org; Sat, 29 Nov 2003 14:37:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQAtf-0006MQ-9i for emacs-devel@gnu.org; Sat, 29 Nov 2003 14:37:22 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AQAtZ-00068S-6a for emacs-devel@gnu.org; Sat, 29 Nov 2003 14:36:45 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1AQ9vM-0002mX-9w for emacs-devel@gnu.org; Sat, 29 Nov 2003 13:34:32 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQ9vL-0003gW-00 for ; Sat, 29 Nov 2003 19:34:31 +0100 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQ9vK-0003gO-00 for ; Sat, 29 Nov 2003 19:34:30 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQ9vK-00064q-00 for ; Sat, 29 Nov 2003 19:34:30 +0100 Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:KYZS+rBe2NqDfTSD+Ot4EhV+zuU= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 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:18210 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18210 Per Abrahamsen writes: > (define-widget 'child 'default > "Base widget for recursive datastructures. > > You need to set :type to the widget type for the datastructure you > want to define, and set :match to a function that matches the > datastructure. If the datastructure is not recursive, you don't have > to set :match." > :format "%v" This should be :format "%{%t%}: %v" to make it directly usable as a customization type.