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: Tue, 02 Dec 2003 11:40:57 +0100 Organization: The Church of Emacs Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87smk4oyai.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070366940 30761 80.91.224.253 (2 Dec 2003 12:09:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 12:09:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Dec 02 13:08:51 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 1AR9Kk-0004Bc-00 for ; Tue, 02 Dec 2003 13:08:50 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AR9Kk-0004kz-01 for ; Tue, 02 Dec 2003 13:08:50 +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 1ARAG6-0004cH-Jg for emacs-devel@quimby.gnus.org; Tue, 02 Dec 2003 08:08:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AR9f9-0006Jq-Nu for emacs-devel@gnu.org; Tue, 02 Dec 2003 07:29:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AR9ea-0006DE-JF for emacs-devel@gnu.org; Tue, 02 Dec 2003 07:29:51 -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 1AR8xV-0000hd-Hf for emacs-devel@gnu.org; Tue, 02 Dec 2003 06:44:49 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1AR7xo-0007Ij-0I for emacs-devel@gnu.org; Tue, 02 Dec 2003 05:41:04 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AR7xm-0005Ww-00 for ; Tue, 02 Dec 2003 11:41:02 +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 1AR7xi-0005WX-00 for ; Tue, 02 Dec 2003 11:40:58 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AR7xi-0005WJ-00 for ; Tue, 02 Dec 2003 11:40:58 +0100 Original-Lines: 13 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:UdI+qB+ldcxuicRIJIfgMKHe7JA= 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:18272 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18272 Juri Linkov writes: > BTW, adding new nodes to a tree in this new widget is easy, > but I can't find a way to delete a node. Is it possible? I don't understand the question. Are you speaking of the 'child' widget, or the 'binary-tree-of-string' example? If the later, then you can't delete or add a single node in binary tree. If you do, the tree is no longer binary. Binary trees always have an odd number of nodes. You can add two nodes by converting a leaf node to an interior node, and you can delete two subtrees by converting an interior node to a leaf node.