From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: Re: tree widget Date: Tue, 13 Apr 2004 12:56:03 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87brlwcfjw.fsf@lexx.delysid.org> References: <20040408.210748.25163220.jet@gyve.org> <20040412.125925.246503710.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081856176 20155 80.91.224.253 (13 Apr 2004 11:36:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 11:36:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 13 13:36:11 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 1BDMD5-0004Oo-00 for ; Tue, 13 Apr 2004 13:36:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDMCr-0007Sk-00 for ; Tue, 13 Apr 2004 13:36:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDLes-0001N3-4k for emacs-devel@quimby.gnus.org; Tue, 13 Apr 2004 07:00:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDLaX-0000jM-Jt for emacs-devel@gnu.org; Tue, 13 Apr 2004 06:56:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDLZz-0000aK-MS for emacs-devel@gnu.org; Tue, 13 Apr 2004 06:56:19 -0400 Original-Received: from [80.109.223.66] (helo=lexx.delysid.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDLZy-0000a1-On for emacs-devel@gnu.org; Tue, 13 Apr 2004 06:55:46 -0400 Original-Received: from mlang by lexx.delysid.org with local (Exim 3.36 #1 (Debian)) id 1BDLaF-0002aJ-00 for ; Tue, 13 Apr 2004 12:56:03 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: (Kim F. Storm's message of "12 Apr 2004 23:53:49 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) 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:21560 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21560 storm@cua.dk (Kim F. Storm) writes: > Masatake YAMATO writes: > >> > How do you think including tree-widget developed by David PONCE >> > in emacs official distribution? >> > >> > Could you explain to me what that does? >> >> As the name explains, the code provides widget >> representing a tree hierarchy like: >> >> You can click [+] and [-] to show and hide the sub tree like >> outline mode. > > Doesn't speedbar already have code to do that? But maybe not in a > generally useful way...? That is the point. Speedbar can not really be reused outside of the speedbar itself. tree-widget can be used in every buffer that has received proper `widget-setup'. Appart from that, tree-widget has a really nice dynamical children generation feature which you can use to draw a tree collapsed, without having all the data for the whole tree ready. Whenever the user expands a node, the children of that node are retrieved by calling a function. This is very very handy for deeply branched trees. Apart from that, since tree-widget is completely Widget based, you can easily create things like a node with a text entry field, without any major hassle. I don't think that speedbar makes this easy in any way. -- CYa, Mario | Debian Developer | Get my public key via finger mlang@db.debian.org | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44