aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-11-07 21:15:17 +0000
committerStefan Monnier2005-11-07 21:15:17 +0000
commitb3910238f46c7093304354adea3870dc25afb68f (patch)
tree461cf200aab7468cc1125ac56feb11f52e6b3f61
parenta6cbd53f325901c364932e9c575a9b2514703e82 (diff)
downloademacs-b3910238f46c7093304354adea3870dc25afb68f.tar.gz
emacs-b3910238f46c7093304354adea3870dc25afb68f.zip
Add `dedicated' arg to get-lru-window and get-largest-window.
-rw-r--r--etc/NEWS5
-rw-r--r--lispref/windows.texi10
2 files changed, 11 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index ef4b8529e9e..b39a2350309 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -4481,6 +4481,11 @@ and scroll-bar settings.
4481*** The new function `window-tree' returns a frame's window tree. 4481*** The new function `window-tree' returns a frame's window tree.
4482 4482
4483+++ 4483+++
4484*** The functions `get-lru-window' and `get-largest-window' take an optional
4485argument `dedicated'. If non-nil, those functions do not ignore
4486dedicated windows.
4487
4488+++
4484** Customizable fringe bitmaps 4489** Customizable fringe bitmaps
4485 4490
4486*** New function `define-fringe-bitmap' can now be used to create new 4491*** New function `define-fringe-bitmap' can now be used to create new
diff --git a/lispref/windows.texi b/lispref/windows.texi
index 0ca7d69c9f9..56ec80b9a24 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -488,7 +488,7 @@ selected window and current buffer. It is just like
488 The following functions choose one of the windows on the screen, 488 The following functions choose one of the windows on the screen,
489offering various criteria for the choice. 489offering various criteria for the choice.
490 490
491@defun get-lru-window &optional frame 491@defun get-lru-window &optional frame dedicated
492This function returns the window least recently ``used'' (that is, 492This function returns the window least recently ``used'' (that is,
493selected). If any full-width windows are present, it only considers 493selected). If any full-width windows are present, it only considers
494these. The selected window is always the most recently used window. 494these. The selected window is always the most recently used window.
@@ -496,7 +496,8 @@ these. The selected window is always the most recently used window.
496The selected window can be the least recently used window if it is the 496The selected window can be the least recently used window if it is the
497only window. A newly created window becomes the least recently used 497only window. A newly created window becomes the least recently used
498window until it is selected. A minibuffer window is never a 498window until it is selected. A minibuffer window is never a
499candidate. Dedicated windows are never candidates, and if all 499candidate. Dedicated windows are never candidates unless the
500@var{dedicated} argument is non-@code{nil}, so if all
500existing windows are dedicated, the value is @code{nil}. 501existing windows are dedicated, the value is @code{nil}.
501 502
502The argument @var{frame} controls which windows are considered. 503The argument @var{frame} controls which windows are considered.
@@ -515,11 +516,12 @@ If it is a frame, consider windows on that frame.
515@end itemize 516@end itemize
516@end defun 517@end defun
517 518
518@defun get-largest-window &optional frame 519@defun get-largest-window &optional frame dedicated
519This function returns the window with the largest area (height times 520This function returns the window with the largest area (height times
520width). If there are no side-by-side windows, then this is the window 521width). If there are no side-by-side windows, then this is the window
521with the most lines. A minibuffer window is never a candidate. 522with the most lines. A minibuffer window is never a candidate.
522Dedicated windows are never candidates, and if all existing windows 523Dedicated windows are never candidates unless the
524@var{dedicated} argument is non-@code{nil}, so if all existing windows
523are dedicated, the value is @code{nil}. 525are dedicated, the value is @code{nil}.
524 526
525If there are two candidate windows of the same size, this function 527If there are two candidate windows of the same size, this function