emacs-devel
[Top][All Lists]
Advanced

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

Re: mouse-drag-mode-line should maybe use window-tree


From: Lennart Borgman
Subject: Re: mouse-drag-mode-line should maybe use window-tree
Date: Mon, 05 Dec 2005 17:48:34 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Richard M. Stallman wrote:

After spending some time wondering why you wrote the new function I realized that it was just enough to nicely fit the needs of the resizing functions. The new function also seems to work in all cases I have tested so far.

If you're not careful about the order in which you move the edges,
adjust-window-trailing-edge can easily give you an error.  The reason
is that it never moves any edges above or below the one you specify to
move, and it can't make any window too small.

If you're not careful about the order to move the edges,
some intermediate state could easily be invalid, resulting
in an error.

Perhaps your code copes with this issue already.  If not, it needs to.
I think it copes with this. For the case of what I have called "interactive resize" (with the arrow keys) there are no problems. For the case of the new version of balance-windows (which I so far calls `bw-balance') I catch the errors and loop. So far I have seen no drawbacks with this.




reply via email to

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