From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: New balance-windows Date: Mon, 08 Aug 2005 12:18:53 +0200 Organization: Organization?!? Message-ID: <85wtmw4tpu.fsf@lola.goethe.zz> References: <87pssv3kai.fsf@thalassa.informatimago.com> <1123035204.009217.187300@g14g2000cwa.googlegroups.com> <87fytr3ea2.fsf@thalassa.informatimago.com> <87vf2juij1.fsf@thalassa.informatimago.com> <42F56F31.3080105@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123496631 19357 80.91.229.2 (8 Aug 2005 10:23:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 10:23:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 12:23:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E24nF-0001mH-8g for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 12:23:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E24qE-0003W3-NA for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2005 06:26:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!130.161.131.117.MISMATCH!tudelft.nl!txtfeed2.tudelft.nl!feeder.xsnews.nl!195.14.215.231.MISMATCH!news.netcologne.de!newsfeed-fusi.netcologne.de!151.189.20.20.MISMATCH!newsfeed.arcor.de!news.arcor.de!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:1DEY0ruHOPg6fESirziOGh1KRlU= Original-Lines: 70 Original-NNTP-Posting-Date: 08 Aug 2005 12:18:53 MEST Original-NNTP-Posting-Host: 6fec791e.newsread4.arcor-online.net Original-X-Trace: DXC=9dcFH84P5MOK` 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:28540 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28540 "Ehud Karni" writes: > On Sun, 07 Aug 2005 04:17:21 +0200, Lennart Borgman wrote: >> >> Pascal Bourguignon wrote: >> >> >... >> >I think a correct algorithm should recover the split tree, then make >> >the balancing depending on the window counts in subtrees. >> > >> > >> I think Pascal is right. Though I think Ehud has made a very nice try I >> believe the split tree must be used. There is not enough information to >> solve the problem otherwise. > > I think that balancing the windows should be done based on geometry > ONLY. What do I care how this geometry was reached ? > > The split tree may cause technical difficulties to the redisplay > engine, but it should be solved there. > > The problem is with `enlarge-window' that can not move some edges, > otherwise there is pure geometry algorithm to resize the windows (see > my other reply). Well, I can arrive at ------------------------- | |X | | | | | | | ------------------------- | | | | | | | | | ------------------------- with enlarge-window from either ------------------------- | |X | | | | | |-----------| ------------| | | | | | | | | | | ------------------------- or ------------------------- | |X | | | | | | | ------------------------- | | | | | | | | | ------------------------- If I now do another enlarge-window, I would be surprised if the direction of enlargement would suddenly change. So the proper direction of enlargement _can't_ be determined without looking at the underlying tree. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum