aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-09-08 17:50:39 +0000
committerEli Zaretskii2001-09-08 17:50:39 +0000
commit1e8ca3a9ae42f2450f29d74df4495916b1a85fa4 (patch)
tree8df9162bc7e34ad4f658fdfb6ae5ca00532f8d5b
parent7f0afecc0da3bb37efdc3f3f200ca0332a59b3b7 (diff)
downloademacs-1e8ca3a9ae42f2450f29d74df4495916b1a85fa4.tar.gz
emacs-1e8ca3a9ae42f2450f29d74df4495916b1a85fa4.zip
(Selecting Windows): Document some-window.
-rw-r--r--lispref/windows.texi15
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
468consider. See @code{get-lru-window}, above. 468consider. See @code{get-lru-window}, above.
469@end defun 469@end defun
470 470
471@cindex window that satisfies a predicate
472@cindex conditional selection of windows
473@defun get-window-with-predicate predicate &optional minibuf all-frames default
474This function returns a window satisfying @var{predicate}. It cycles
475through all visible windows using @code{walk-windows} (@pxref{Cyclic
476Window Ordering}), calling @var{predicate} on each one one of them
477with that window as its argument. The function returns the first
478window for which @var{predicate} returns a non-@code{nil} value; if
479that never happens, it returns @var{default}.
480
481The optional arguments @var{minibuf} and @var{all-frames} specify the
482set of windows to include in the scan. See the description of
483@code{next-window} in @ref{Cyclic Window Ordering}, for details.
484@end defun
485
471@node Cyclic Window Ordering 486@node Cyclic Window Ordering
472@comment node-name, next, previous, up 487@comment node-name, next, previous, up
473@section Cyclic Ordering of Windows 488@section Cyclic Ordering of Windows