Function: frameset--find-frame-if
frameset--find-frame-if is a byte-compiled function defined in
frameset.el.gz.
Signature
(frameset--find-frame-if PREDICATE DISPLAY &rest ARGS)
Documentation
Find a reusable frame satisfying PREDICATE.
Look through available frames whose display property matches DISPLAY and return the first one for which (PREDICATE frame ARGS) returns t. If PREDICATE is nil, it is always satisfied. Internal use only.
Source Code
;; Defined in /usr/src/emacs/lisp/frameset.el.gz
(defun frameset--find-frame-if (predicate display &rest args)
"Find a reusable frame satisfying PREDICATE.
Look through available frames whose display property matches DISPLAY
and return the first one for which (PREDICATE frame ARGS) returns t.
If PREDICATE is nil, it is always satisfied. Internal use only."
(cl-find-if (lambda (frame)
(and (equal (frame-parameter frame 'display) display)
(or (null predicate)
(apply predicate frame args))))
frameset--reuse-list))