From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bingham, Jay" Newsgroups: gmane.emacs.help Subject: RE: balance-windows again Date: Thu, 15 Sep 2005 12:13:04 -0500 Message-ID: <72A87F7160C0994D8C5A36E2FDC227F50F7B4485@txnexc01.americas.cpqcorp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1126804584 14005 80.91.229.2 (15 Sep 2005 17:16:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2005 17:16:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 19:16:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EFxKJ-0008W6-HE for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Sep 2005 19:15:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFxKI-00042l-Tn for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Sep 2005 13:15:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EFxJs-000410-QU for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 13:14:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EFxJq-00040M-2o for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 13:14:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFxJq-00040C-0Z for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 13:14:42 -0400 Original-Received: from [156.153.255.246] (helo=palrel11.hp.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EFxJp-0001SA-Dy for help-gnu-emacs@gnu.org; Thu, 15 Sep 2005 13:14:41 -0400 Original-Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.92.1.67]) by palrel11.hp.com (Postfix) with ESMTP id 327CA13B4C for ; Thu, 15 Sep 2005 10:13:40 -0700 (PDT) Original-Received: from txnexc01.americas.cpqcorp.net ([16.74.7.21]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.211); Thu, 15 Sep 2005 10:13:06 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: balance-windows again Thread-Index: AcW5iK2ntNolc2FnTCSwpi0pLDGuPAAhjBmQ Original-To: X-OriginalArrivalTime: 15 Sep 2005 17:13:06.0139 (UTC) FILETIME=[BCEA72B0:01C5BA18] 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:29471 Archived-At: On: Wednesday, September 14, 2005 at 6:43 PM Lennart Borgman wrote: > Some time ago I wrote some suggestions about how to rewrite=20 > balance-windows to use the windows split tree. I have tried to do that.=20 > The file bw.el at >=20 > http://ourcomments.org/Emacs/DL/elisp/test/ >=20 > 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 Looking at the function bw-enlarge-window I saw that the invocation of enlarge-window has three arguments (arg side preserve-before), the help on enlarge window in emacs 21.3 says that the funciton requires at most two arguments. I removed the third argument (preserve-before) and re-evaled the buffer. When I executed the function bw-balance the windows were balanced as expected. I then tried some configurations that were a little more complex and they balanced as expected. The following configurations balanced as expected: +----------------------+ +----------+-----+-----+ | | | | | | | | | | | | | | | | | | +----------------------+ | | | | | | +----------+-----+-----+ | | | | | | | | +----------------------+ | | | | | | | | +----------------------+ | | | | | | | | | | | | | | | | +----------------------+ +----------------------+ +------+-------+-------+ | | | | | | | | | | | | | | | | +------+-------+-------+ | | | | | | | | +----------+-----+-----+ | | | | | | | | | | | | | | | | +----------+-----+-----+ 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: +------+-------+-------+ +------+-------+-------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +------+-------+-------+ +------+-------+-------+ | | | | | | | | +----------------------+ +----------------------+ | | | | | | | | +----------+-----+-----+ +------+-------+-------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----------+-----+-----+ +------+-------+-------+ +----------------------+ | | | | +----------------------+ | | | | +------+-------+-------+ | | | | | | | | | | | | | | | | +------+---+---+-+-----+ | | | | | | | | | | | | | | | | +----------+-----+-----+ This not so complex configuration also caused a hang: +----------------------+ | | | | | | | | +----------------------+ | | | | | | | | +------+---------------+ | | | | | | | | | | | | +------+---------------+ -_ J_) C_)ingham . Hewlett-Packard . Austin, TX . "Language is the apparel in which your thoughts parade in public. . Never clothe them in vulgar and shoddy attire." -Dr. George W. Crane-