emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in window resizing?


From: Lennart Borgman
Subject: Re: Bug in window resizing?
Date: Thu, 24 Nov 2005 00:58:37 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Lennart Borgman wrote:

Kim F. Storm wrote:

Lennart Borgman <address@hidden> writes:

Richard M. Stallman wrote:

  What is needed (I believe) is to go up one level in the split
tree, find    the window under the selected window and then resize
this. Or maybe it    is even more complicated than that?

Yes, I think you are right.  It seems that the only feasible way to
fix this is to make a new interface.  Since that change is already
being discussed, I think we should simply go ahead with that.

Is anyone working on that?



I think this bug is still there. You can see this bug if you first
split windows with C-x 2, C-x 3, C-x 2. Now try to move the bottom of
the second window to the left.

Kim, did you look at this when you made `window-tree'? Or perhaps
could you look at it now? I do not think I understand the subtle
details here ;-)


I implemented window-tree for the purpose of balance-windows.
I didn't correlate it to this problem.

AFAICS, enlarge-window works just fine in that window (try C-x ^), so
if the code in mouse-drag-mode-line-1 would just selected the proper
window, it should work (without finding the parent window).
No, it does not work if you use (enlarge-window 1 nil t) in that window. I did look at the C code before, see the sentence beginning with "What is needed ... " above. I just think it is best I do not touch this part of the C code.

I have decided I can unfortunately not fix this bug now. A quite complicated rewrite of `enlarge-window' is needed.

I run into this when I tried to finish the rewrite of `balance-windows'. I have written a new version of balance-windows and it works (I belieive) but since Kim's patch gave some new possibilities I wanted to enhance it a bit. The rewrite contains three functions:

1) A rewrite of balance-windows (at the moment called bw-balance, C-x + +)
2) A new function to balance only the siblings in the tree from `window-tree' (bw-balance-siblings, C-x + .) 3) A temporary mode for resizing current window with the arrow keys (started with C-x +)

The bug in enlarge-window is more visible now because of 3 above. However if you try to resize using the mouse you see the same problem.

Please test the new functions. They are in http://ourcomments.org/Emacs/DL/elisp/test/bwcvs.el




reply via email to

[Prev in Thread] Current Thread [Next in Thread]