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: balance-windows again Date: Fri, 16 Sep 2005 00:11:49 +0200 Message-ID: <4329F1A5.3030002@student.lu.se> References: <72A87F7160C0994D8C5A36E2FDC227F50F7B4485@txnexc01.americas.cpqcorp.net> 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 1126824280 13815 80.91.229.2 (15 Sep 2005 22:44:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 22:44:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 16 00:44:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EG2Sy-0004Pd-1P for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Sep 2005 00:44:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG2Sx-0004rZ-9k for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Sep 2005 18:44:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EG2SY-0004qe-A8 for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 18:44:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EG2SW-0004qQ-QK for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 18:44:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EG2Ep-0001d0-6p for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 18:29:51 -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 1EG1xZ-000844-53 for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 18:12:01 -0400 Original-Received: from [192.168.123.121] (83.249.205.211) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900E8E576; Fri, 16 Sep 2005 00:11:49 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: "Bingham, Jay" In-Reply-To: <72A87F7160C0994D8C5A36E2FDC227F50F7B4485@txnexc01.americas.cpqcorp.net> 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:29480 Archived-At: Bingham, Jay wrote: > > >On: Wednesday, September 14, 2005 at 6:43 PM 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? >> >> > >Lennart, > >I tried your bw.el package on emacs 21.3 running on Win2K, and found the >following: > >After evaluating the buffer containing the package and splitting window >into three uneven windows I executed bw-balance. I received the >following message: >let: Wrong number of arguments: #, 3 > >However, when I tried some more complex configurations of windows, emacs >stopped responding and I would have to kill the process. > >Here are two windows configurations that caused emacs to hang: > > Thanks Jay! I am only using CVS Emacs and missed that enlarge-window only take two args in 21.3. The window configurations you tested works well in CVS Emacs. I guess they do not converge because my code depends on the third arg to enlarge-window. I have made some small changes that I hope will make the code work on 21.3 too, but the result will of course is some cases not be as good as in CVS Emacs though. The new version is 0.52 and I have just uploaded it. I have however found a case where bw-balance does not work, but I believe it is a bug in CVS Emacs. I have told this on the Emacs Devel list and I am waiting for some answer. Best wishes, Lennart