From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: New balance-windows Date: Sat, 06 Aug 2005 18:58:53 +0200 Message-ID: <42F4EC4D.30701@student.lu.se> References: <87pssv3kai.fsf@thalassa.informatimago.com> <1123035204.009217.187300@g14g2000cwa.googlegroups.com> <87fytr3ea2.fsf@thalassa.informatimago.com> <87vf2juij1.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123347752 32459 80.91.229.2 (6 Aug 2005 17:02:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2005 17:02:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 19:02:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E1S2n-0003qo-RB for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Aug 2005 19:01:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1S5i-0000mY-Fx for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Aug 2005 13:04:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E1S55-0000Sb-Nt for help-gnu-emacs@gnu.org; Sat, 06 Aug 2005 13:03:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E1S53-0000QS-9W for help-gnu-emacs@gnu.org; Sat, 06 Aug 2005 13:03:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1S51-0000No-PN for help-gnu-emacs@gnu.org; Sat, 06 Aug 2005 13:03:27 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E1SDu-0000jQ-Rv for help-gnu-emacs@gnu.org; Sat, 06 Aug 2005 13:12:39 -0400 Original-Received: from [192.168.123.121] (83.249.202.239) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E29006EE2EC; Sat, 6 Aug 2005 18:58:54 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Pascal Bourguignon In-Reply-To: <87vf2juij1.fsf@thalassa.informatimago.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28484 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28484 Pascal Bourguignon wrote: >Note that: > > +------+------+ > | | | > | | | > +------+------+ > | | | > | | | > +------+------+ > >may represent two different structures: C-x 2 C-x 3 C-x o C-x 3 >or C-x 3 C-x 2 C-x o C-x 2 > > >But in both these cases: > > +-------+--------+ +-------+--------+ > | | | | | | > | 1 / 3 | | | | 1 / 4 | > | | | | 1 / 2 +--------+ > +-------| 2 / 3 | | | | > | | | | | 1 / 4 | > | 1 / 3 | | +-------+--------+ > | | | | | > +-------+--------+ | | > | | | 1 / 2 | > | 1 / 3 | | | > | | | | > +-------+--------+ +-------+--------+ > >the hierarchy of splits is the same, so I don't see why it should >balance differently. > >I think a correct algorithm should recover the split tree, then make >the balancing depending on the window counts in subtrees. > > Is the problem really that welldefined in Emacs? Do you know how the windows have been splitted? The difference above may perhaps be seen as emerging from that difficulty?