From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: balance-windows again Date: Fri, 16 Sep 2005 09:01:22 +0200 Message-ID: <432A6DC2.30606@student.lu.se> References: <4328B58E.6010103@student.lu.se> 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 1126855129 13254 80.91.229.2 (16 Sep 2005 07:18:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 07:18:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 09:18:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGAUM-0006Ek-3q for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2005 09:18:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGAUL-0003OO-2v for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2005 03:18:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EGAGQ-0006yG-5R for emacs-devel@gnu.org; Fri, 16 Sep 2005 03:04:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EGAGM-0006xK-DU for emacs-devel@gnu.org; Fri, 16 Sep 2005 03:03:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGAG7-0006sj-9w; Fri, 16 Sep 2005 03:03:43 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EGADt-0006nV-5O; Fri, 16 Sep 2005 03:01:25 -0400 Original-Received: from [192.168.123.121] (83.249.205.211) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 43204B9F00186083; Fri, 16 Sep 2005 09:01:23 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Lennart Borgman In-Reply-To: <4328B58E.6010103@student.lu.se> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42979 gmane.emacs.help:29484 Archived-At: Lennart Borgman wrote: > Some time ago I wrote some suggestions about how to rewrite > balance-windows to use the windows split tree. I have tried to do > that. The file bw.el at > > http://ourcomments.org/Emacs/DL/elisp/test/ > > contains my rewrite of balance-windows. Could those who are interested > please test this version? I have fixed some bugs (after feedback from Jay Bingham) and I believe it works ok now. It works a little bit better with CVS Emacs than 21.3. bw.el balances windows both horizontally and vertically. I think bw-balance could be a replacement for the current balance-windows. (Though there seem to be other candidates too.) Some heuristics are used to find the window split tree and those fails sometimes. It does not make the resulting window resizing awful, but it could be better if the split tree where known. However giving read access to the window split tree from elisp would simplify the code in bw.el a lot and make the result better in those cases. Is there any possibility that access to the window split tree from elisp could be implemented in Emacs?