Function: window-at-side-list
window-at-side-list is a byte-compiled function defined in
window.el.gz.
Signature
(window-at-side-list &optional FRAME SIDE)
Documentation
Return list of all windows on SIDE of FRAME.
FRAME must be a live frame and defaults to the selected frame.
SIDE can be any of the symbols left, top, right or
bottom. The default value nil is handled like bottom.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-at-side-list (&optional frame side)
"Return list of all windows on SIDE of FRAME.
FRAME must be a live frame and defaults to the selected frame.
SIDE can be any of the symbols `left', `top', `right' or
`bottom'. The default value nil is handled like `bottom'."
(setq frame (window-normalize-frame frame))
(let (windows)
(walk-window-tree
(lambda (window)
(when (window-at-side-p window side)
(setq windows (cons window windows))))
frame nil 'nomini)
(nreverse windows)))