Function: frame--make-frame-ids-alist

frame--make-frame-ids-alist is a byte-compiled function defined in frame.el.gz.

Signature

(frame--make-frame-ids-alist &optional FRAME)

Documentation

Return alist of frame identifiers and frames starting with FRAME.

Visible or iconified frames on the same terminal as FRAME are listed along with frames that are undeletable. Frames with a non-nil no-other-frame parameter are not listed. The optional argument FRAME must specify a live frame and defaults to the selected frame.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frame--make-frame-ids-alist (&optional frame)
  "Return alist of frame identifiers and frames starting with FRAME.
Visible or iconified frames on the same terminal as FRAME are listed
along with frames that are undeletable.  Frames with a non-nil
`no-other-frame' parameter are not listed.  The optional argument FRAME
must specify a live frame and defaults to the selected frame."
  (let ((frames (frame-list-1 frame))
        (terminal (frame-parameter frame 'terminal))
        alist)
    (dolist (frame frames)
      (when (and (frame-visible-p frame)
		 (eq (frame-parameter frame 'terminal) terminal)
		 (not (frame-parameter frame 'no-other-frame)))
	(push (cons (number-to-string (frame-id frame)) frame) alist)))
    (dolist (elt undelete-frame--deleted-frames)
      (push (cons (number-to-string (nth 3 elt)) nil) alist))
    (nreverse alist)))