Function: tab-bar--reusable-frames
tab-bar--reusable-frames is a byte-compiled function defined in
tab-bar.el.gz.
Signature
(tab-bar--reusable-frames ALL-FRAMES)
Documentation
Process the reusable-frames buffer display action alist entry.
Return a frame list. Used with the display-buffer-in-tab action.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar--reusable-frames (all-frames)
"Process the `reusable-frames' buffer display action alist entry.
Return a frame list. Used with the `display-buffer-in-tab' action."
(cond
((eq all-frames t) (frame-list))
((eq all-frames 'visible) (visible-frame-list))
;; The standard behavior for a `reusable-frames' value of 0 is implemented in
;; candidate_window_p() in window.c, and we have to go via `window-list-1' to
;; utilize this. We list the selected frame first.
((eq all-frames 0) (let (frames)
(dolist (w (window-list-1 nil nil 0))
(let ((f (window-frame w)))
(unless (memq f frames)
(push f frames))))
(nreverse frames)))
((framep all-frames) (list all-frames))
(t (list (selected-frame)))))