Function: facemenu-iterate

facemenu-iterate is a byte-compiled function defined in facemenu.el.gz.

Signature

(facemenu-iterate FUNC LIST)

Documentation

Apply FUNC to each element of LIST until one returns non-nil.

Returns the non-nil value it found, or nil if all were nil.

Source Code

;; Defined in /usr/src/emacs/lisp/facemenu.el.gz
(defun facemenu-iterate (func list)
  "Apply FUNC to each element of LIST until one returns non-nil.
Returns the non-nil value it found, or nil if all were nil."
  (while (and list (not (funcall func (car list))))
    (setq list (cdr list)))
  (car list))