From: "Bingham, Jay" <Jay.Bingham@hp.com>
Subject: RE: balance-windows again
Date: Thu, 15 Sep 2005 12:13:04 -0500 [thread overview]
Message-ID: <72A87F7160C0994D8C5A36E2FDC227F50F7B4485@txnexc01.americas.cpqcorp.net> (raw)
<Send replies only to the list not to this address>
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: #<subr enlarge-window>, 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-
next reply other threads:[~2005-09-15 17:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 17:13 Bingham, Jay [this message]
2005-09-15 22:11 ` balance-windows again Lennart Borgman
-- strict thread matches above, loose matches on Subject: below --
2005-09-14 23:43 Lennart Borgman
2005-09-16 7:01 ` Lennart Borgman
2005-09-16 8:20 ` Kim F. Storm
2005-09-16 12:44 ` Lennart Borgman
2005-09-27 22:57 ` Kim F. Storm
2005-09-29 12:34 ` Kim F. Storm
2005-09-30 12:03 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72A87F7160C0994D8C5A36E2FDC227F50F7B4485@txnexc01.americas.cpqcorp.net \
--to=jay.bingham@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).