diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-09-08 17:50:39 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-09-08 17:50:39 +0000 |
commit | 1e8ca3a9ae42f2450f29d74df4495916b1a85fa4 (patch) | |
tree | 8df9162bc7e34ad4f658fdfb6ae5ca00532f8d5b /lispref/windows.texi | |
parent | 7f0afecc0da3bb37efdc3f3f200ca0332a59b3b7 (diff) | |
download | emacs-1e8ca3a9ae42f2450f29d74df4495916b1a85fa4.tar.gz |
(Selecting Windows): Document some-window.
Diffstat (limited to 'lispref/windows.texi')
-rw-r--r-- | lispref/windows.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi index bb5c88f0c23..b1f18fa7857 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi @@ -468,6 +468,21 @@ The argument @var{frame} controls which set of windows to consider. See @code{get-lru-window}, above. @end defun +@cindex window that satisfies a predicate +@cindex conditional selection of windows +@defun get-window-with-predicate predicate &optional minibuf all-frames default +This function returns a window satisfying @var{predicate}. It cycles +through all visible windows using @code{walk-windows} (@pxref{Cyclic +Window Ordering}), calling @var{predicate} on each one one of them +with that window as its argument. The function returns the first +window for which @var{predicate} returns a non-@code{nil} value; if +that never happens, it returns @var{default}. + +The optional arguments @var{minibuf} and @var{all-frames} specify the +set of windows to include in the scan. See the description of +@code{next-window} in @ref{Cyclic Window Ordering}, for details. +@end defun + @node Cyclic Window Ordering @comment node-name, next, previous, up @section Cyclic Ordering of Windows |