Function: preview-hook-enquiry

preview-hook-enquiry is a byte-compiled function defined in preview.el.

Signature

(preview-hook-enquiry HOOK)

Documentation

Gets a value from a configured hook.

HOOK is a list or single item, for which the first resolving to non-nil counts. Entries can be a callable function, or a symbol that is consulted, or a value. Lists are evaluated recursively.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-hook-enquiry (hook)
  "Gets a value from a configured hook.
HOOK is a list or single item, for which the first resolving to
non-nil counts.  Entries can be a callable function, or
a symbol that is consulted, or a value.  Lists are evaluated
recursively."
  (cond ((functionp hook)
         (funcall hook))
        ((consp hook)
         (let (res)
           (while (and (not res) hook)
             (setq res (preview-hook-enquiry (car hook))
                   hook (cdr hook)))
           res))
        ((and (symbolp hook) (boundp hook))
         (symbol-value hook))
        (t hook)))