478 |
@defun get-window-with-predicate predicate &optional minibuf all-frames default |
@defun get-window-with-predicate predicate &optional minibuf all-frames default |
479 |
This function returns a window satisfying @var{predicate}. It cycles |
This function returns a window satisfying @var{predicate}. It cycles |
480 |
through all visible windows using @code{walk-windows} (@pxref{Cyclic |
through all visible windows using @code{walk-windows} (@pxref{Cyclic |
481 |
Window Ordering}), calling @var{predicate} on each one one of them |
Window Ordering}), calling @var{predicate} on each one of them |
482 |
with that window as its argument. The function returns the first |
with that window as its argument. The function returns the first |
483 |
window for which @var{predicate} returns a non-@code{nil} value; if |
window for which @var{predicate} returns a non-@code{nil} value; if |
484 |
that never happens, it returns @var{default}. |
that never happens, it returns @var{default}. |