comparison lispref/windows.texi @ 58749:6f8d4406a676

(Selecting Windows): get-lru-window and get-largest-window don't consider dedicated windows.
author Richard M. Stallman <rms@gnu.org>
date Fri, 03 Dec 2004 11:27:53 +0000
parents 41d89cffddca
children b0a08eb3f2eb f2ebccfa87d4
comparison
equal deleted inserted replaced
58748:e347a194391a 58749:6f8d4406a676
486 selected). If any full-width windows are present, it only considers 486 selected). If any full-width windows are present, it only considers
487 these. The selected window is always the most recently used window. 487 these. The selected window is always the most recently used window.
488 488
489 The selected window can be the least recently used window if it is the 489 The selected window can be the least recently used window if it is the
490 only window. A newly created window becomes the least recently used 490 only window. A newly created window becomes the least recently used
491 window until it is selected. A minibuffer window is never a candidate. 491 window until it is selected. A minibuffer window is never a
492 candidate. Dedicated windows are never candidates, and if all
493 existing windows are dedicated, the value is @code{nil}.
492 494
493 The argument @var{frame} controls which windows are considered. 495 The argument @var{frame} controls which windows are considered.
494 496
495 @itemize @bullet 497 @itemize @bullet
496 @item 498 @item
508 510
509 @defun get-largest-window &optional frame 511 @defun get-largest-window &optional frame
510 This function returns the window with the largest area (height times 512 This function returns the window with the largest area (height times
511 width). If there are no side-by-side windows, then this is the window 513 width). If there are no side-by-side windows, then this is the window
512 with the most lines. A minibuffer window is never a candidate. 514 with the most lines. A minibuffer window is never a candidate.
513 515 Dedicated windows are never candidates, and if all existing windows
514 If there are two windows of the same size, then the function returns 516 are dedicated, the value is @code{nil}.
515 the window that is first in the cyclic ordering of windows (see 517
516 following section), starting from the selected window. 518 If there are two candidate windows of the same size, this function
519 prefers the one that comes first in the cyclic ordering of windows
520 (see following section), starting from the selected window.
517 521
518 The argument @var{frame} controls which set of windows to 522 The argument @var{frame} controls which set of windows to
519 consider. See @code{get-lru-window}, above. 523 consider. See @code{get-lru-window}, above.
520 @end defun 524 @end defun
521 525