Function: follow-all-followers

follow-all-followers is a byte-compiled function defined in follow.el.gz.

Signature

(follow-all-followers &optional WIN)

Documentation

Return all windows displaying the same buffer as the WIN.

The list is sorted with topmost and leftmost windows first, and contains only windows in the same frame as WIN. If WIN is nil, it defaults to the selected window.

Source Code

;; Defined in /usr/src/emacs/lisp/follow.el.gz
(defun follow-all-followers (&optional win)
  "Return all windows displaying the same buffer as the WIN.
The list is sorted with topmost and leftmost windows first, and
contains only windows in the same frame as WIN.  If WIN is nil,
it defaults to the selected window."
  (unless (window-live-p win)
    (setq win (selected-window)))
  (let ((windows (get-buffer-window-list
                  (window-buffer win) 'no-minibuf (window-frame win))))
    (sort windows #'follow--window-sorter)))