Function: frames-on-display-list
frames-on-display-list is a byte-compiled function defined in
frame.el.gz.
Signature
(frames-on-display-list &optional DEVICE)
Documentation
Return a list of all frames on DEVICE.
DEVICE should be a terminal, a frame, or a name of an X display or tty (a string of the form HOST:SERVER.SCREEN).
If DEVICE is omitted or nil, it defaults to the selected frame's terminal device.
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frames-on-display-list (&optional device)
"Return a list of all frames on DEVICE.
DEVICE should be a terminal, a frame,
or a name of an X display or tty (a string of the form
HOST:SERVER.SCREEN).
If DEVICE is omitted or nil, it defaults to the selected
frame's terminal device."
(let* ((terminal (get-device-terminal device))
(func #'(lambda (frame)
(eq (frame-terminal frame) terminal))))
(filtered-frame-list func)))