Function: undelete-frame-id-index

undelete-frame-id-index is a byte-compiled function defined in frame.el.gz.

Signature

(undelete-frame-id-index ID)

Documentation

Return an undelete-frame index, if ID is that of an undeletable frame.

Return nil if ID is not associated with an undeletable frame.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun undelete-frame-id-index (id)
  "Return an `undelete-frame' index, if ID is that of an undeletable frame.
Return nil if ID is not associated with an undeletable frame."
  (catch :found
    (seq-do-indexed
     (lambda (frame-data index)
       (when (eq id (nth 3 frame-data))
         (throw :found (1+ index))))
     undelete-frame--deleted-frames)))