diff options
| author | Stefan Monnier | 2005-11-07 21:15:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-11-07 21:15:17 +0000 |
| commit | b3910238f46c7093304354adea3870dc25afb68f (patch) | |
| tree | 461cf200aab7468cc1125ac56feb11f52e6b3f61 | |
| parent | a6cbd53f325901c364932e9c575a9b2514703e82 (diff) | |
| download | emacs-b3910238f46c7093304354adea3870dc25afb68f.tar.gz emacs-b3910238f46c7093304354adea3870dc25afb68f.zip | |
Add `dedicated' arg to get-lru-window and get-largest-window.
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lispref/windows.texi | 10 |
2 files changed, 11 insertions, 4 deletions
| @@ -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 | ||
| 4485 | argument `dedicated'. If non-nil, those functions do not ignore | ||
| 4486 | dedicated 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, |
| 489 | offering various criteria for the choice. | 489 | offering various criteria for the choice. |
| 490 | 490 | ||
| 491 | @defun get-lru-window &optional frame | 491 | @defun get-lru-window &optional frame dedicated |
| 492 | This function returns the window least recently ``used'' (that is, | 492 | This function returns the window least recently ``used'' (that is, |
| 493 | selected). If any full-width windows are present, it only considers | 493 | selected). If any full-width windows are present, it only considers |
| 494 | these. The selected window is always the most recently used window. | 494 | these. 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. | |||
| 496 | The selected window can be the least recently used window if it is the | 496 | The selected window can be the least recently used window if it is the |
| 497 | only window. A newly created window becomes the least recently used | 497 | only window. A newly created window becomes the least recently used |
| 498 | window until it is selected. A minibuffer window is never a | 498 | window until it is selected. A minibuffer window is never a |
| 499 | candidate. Dedicated windows are never candidates, and if all | 499 | candidate. Dedicated windows are never candidates unless the |
| 500 | @var{dedicated} argument is non-@code{nil}, so if all | ||
| 500 | existing windows are dedicated, the value is @code{nil}. | 501 | existing windows are dedicated, the value is @code{nil}. |
| 501 | 502 | ||
| 502 | The argument @var{frame} controls which windows are considered. | 503 | The 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 |
| 519 | This function returns the window with the largest area (height times | 520 | This function returns the window with the largest area (height times |
| 520 | width). If there are no side-by-side windows, then this is the window | 521 | width). If there are no side-by-side windows, then this is the window |
| 521 | with the most lines. A minibuffer window is never a candidate. | 522 | with the most lines. A minibuffer window is never a candidate. |
| 522 | Dedicated windows are never candidates, and if all existing windows | 523 | Dedicated windows are never candidates unless the |
| 524 | @var{dedicated} argument is non-@code{nil}, so if all existing windows | ||
| 523 | are dedicated, the value is @code{nil}. | 525 | are dedicated, the value is @code{nil}. |
| 524 | 526 | ||
| 525 | If there are two candidate windows of the same size, this function | 527 | If there are two candidate windows of the same size, this function |