diff options
Diffstat (limited to 'lisp/window.el')
| -rw-r--r-- | lisp/window.el | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/window.el b/lisp/window.el index f20940fa0ea..bb34a6d7b4c 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2642,12 +2642,17 @@ and no others." | |||
| 2642 | "Return t if WINDOW is the currently active minibuffer window." | 2642 | "Return t if WINDOW is the currently active minibuffer window." |
| 2643 | (and (window-live-p window) (eq window (active-minibuffer-window)))) | 2643 | (and (window-live-p window) (eq window (active-minibuffer-window)))) |
| 2644 | 2644 | ||
| 2645 | (defun count-windows (&optional minibuf) | 2645 | (defun count-windows (&optional minibuf all-frames) |
| 2646 | "Return the number of live windows on the selected frame. | 2646 | "Return the number of live windows on the selected frame. |
| 2647 | |||
| 2647 | The optional argument MINIBUF specifies whether the minibuffer | 2648 | The optional argument MINIBUF specifies whether the minibuffer |
| 2648 | window shall be counted. See `walk-windows' for the precise | 2649 | window is included in the count. |
| 2649 | meaning of this argument." | 2650 | |
| 2650 | (length (window-list-1 nil minibuf))) | 2651 | If ALL-FRAMES is non-nil, count the windows in all frames instead |
| 2652 | just the selected frame. | ||
| 2653 | |||
| 2654 | See `walk-windows' for the precise meaning of this argument." | ||
| 2655 | (length (window-list-1 nil minibuf all-frames))) | ||
| 2651 | 2656 | ||
| 2652 | ;;; Resizing windows. | 2657 | ;;; Resizing windows. |
| 2653 | (defun window--size-to-pixel (window size &optional horizontal pixelwise round-maybe) | 2658 | (defun window--size-to-pixel (window size &optional horizontal pixelwise round-maybe) |
| @@ -5729,10 +5734,10 @@ window." | |||
| 5729 | WINDOW defaults to the selected window. DIRECTION can be | 5734 | WINDOW defaults to the selected window. DIRECTION can be |
| 5730 | nil (i.e. any), `height' or `width'." | 5735 | nil (i.e. any), `height' or `width'." |
| 5731 | (with-current-buffer (window-buffer window) | 5736 | (with-current-buffer (window-buffer window) |
| 5732 | (when (and (boundp 'window-size-fixed) window-size-fixed) | 5737 | (and window-size-fixed |
| 5733 | (not (and direction | 5738 | (not (and direction |
| 5734 | (member (cons direction window-size-fixed) | 5739 | (member (cons direction window-size-fixed) |
| 5735 | '((height . width) (width . height)))))))) | 5740 | '((height . width) (width . height)))))))) |
| 5736 | 5741 | ||
| 5737 | ;;; A different solution to balance-windows. | 5742 | ;;; A different solution to balance-windows. |
| 5738 | (defvar window-area-factor 1 | 5743 | (defvar window-area-factor 1 |