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: Creating recursive customization types / widgets Date: 30 Nov 2003 15:05:52 -0500 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 1070223161 7009 80.91.224.253 (30 Nov 2003 20:12:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2003 20:12:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Nov 30 21:12:39 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 1AQXvr-0002or-00 for ; Sun, 30 Nov 2003 21:12:39 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQXvr-0006oN-00 for ; Sun, 30 Nov 2003 21:12:39 +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 1AQYoE-0005Cn-J9 for emacs-devel@quimby.gnus.org; Sun, 30 Nov 2003 16:08:50 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQYnN-0005C6-Tw for emacs-devel@gnu.org; Sun, 30 Nov 2003 16:07:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQYmr-00054e-5U for emacs-devel@gnu.org; Sun, 30 Nov 2003 16:07:56 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQYmq-00054M-SI for emacs-devel@gnu.org; Sun, 30 Nov 2003 16:07:24 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id hAUK5rbj010311; Sun, 30 Nov 2003 15:05:53 -0500 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 5B3433C63E; Sun, 30 Nov 2003 15:05:53 -0500 (EST) Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean 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:18229 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18229 > Below is a new widget named "child", which should simplify both tasks > a lot. Neat. I have no idea why it's called `child' and the resulting use of `child' in (define-widget 'foo 'child ...) does not look particularly intuitive, but I can't think of anything better either. We should install this. > If the datastructures is recursive, you need to gave a :match argument > as well as :type. Why is that ? > If not, it will simply match any values that the > type specified for :type will match. Which seems like what we want. Are there cases where it doesn't work and if so, why not (i.e. can we fix it) ? Stefan