[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New balance-windows
From: |
Stefan Monnier |
Subject: |
Re: New balance-windows |
Date: |
Tue, 09 Aug 2005 21:48:27 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
> (if (< (car (window-edges)) (car (window-edges next)))
> ;; The windows are side-by-side
> (unless (zerop (setq diff (/ diff (window-height) 2)))
> ;; Change things more smoothly.
> (if (or (> diff 1) (< diff -1)) (setq diff (/ diff 2)))
> (shrink-window diff)
^^
t
[ I mistakenly removed this second arg before posting my code, thinking I was
using a local extension of shrink-window, but I later noticed that it was
not the case (I dropped this local extension when it collided with
preserve-before). ]
Stefan
- Re: Making the width of three windows equal, (continued)
- Re: Making the width of three windows equal, Pascal Bourguignon, 2005/08/02
- Re: Making the width of three windows equal, Samuel, 2005/08/02
- Re: New balance-windows (Was Re: Making the width of three windows equal), Richard M. Stallman, 2005/08/07
- Re: New balance-windows (Was Re: Making the width of three windows equal), Ehud Karni, 2005/08/08
- Re: New balance-windows (Was Re: Making the width of three windows equal), Richard M. Stallman, 2005/08/08
- Re: New balance-windows, Stefan Monnier, 2005/08/09
- Re: New balance-windows,
Stefan Monnier <=
- Message not available
- Re: New balance-windows, David Combs, 2005/08/20
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/08
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/07
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/06
- Re: New balance-windows, Lennart Borgman, 2005/08/06
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/06
- Re: New balance-windows, Lennart Borgman, 2005/08/06
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/07
- Re: New balance-windows, Lennart Borgman, 2005/08/07
- Message not available
- Re: New balance-windows, Pascal Bourguignon, 2005/08/07