window-list-1
window-list-1 is a built-in function in `C source code
'.
(window-list-1 &optional WINDOW MINIBUF ALL-FRAMES)
Return a list of all live windows.
WINDOW specifies the first window to list and defaults to the selected
window.
Optional argument MINIBUF nil or omitted means consider the minibuffer
window only if the minibuffer is active. MINIBUF t means consider the
minibuffer window even if the minibuffer is not active. Any other value
means do not consider the minibuffer window even if the minibuffer is
active.
Optional argument ALL-FRAMES nil or omitted means consider all windows
on WINDOW's frame, plus the minibuffer window if specified by the
MINIBUF argument. If the minibuffer counts, consider all windows on all
frames that share that minibuffer too. The following non-nil values of
ALL-FRAMES have special meanings:
- t means consider all windows on all existing frames.
- `visible' means consider all windows on all visible frames.
- 0 (the number zero) means consider all windows on all visible and
iconified frames.
- A frame means consider all windows on that frame only.
Anything else means consider all windows on WINDOW's frame and no
others.
If WINDOW is not on the list of windows returned, some other window will
be listed first but no error is signaled.