Function: preview-auto-reveal-p

preview-auto-reveal-p is a byte-compiled function defined in preview.el.

Signature

(preview-auto-reveal-p MODE DISTANCE)

Documentation

Decide whether to auto-reveal.

Return non-nil if region should be auto-opened. See preview-auto-reveal for definitions of MODE, which gets set to preview-auto-reveal. DISTANCE specifies the movement distance with which point has been reached in case it has been a movement starting in the current buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-auto-reveal-p (mode distance)
  "Decide whether to auto-reveal.
Return non-nil if region should be auto-opened.
See `preview-auto-reveal' for definitions of MODE, which gets
set to `preview-auto-reveal'.  DISTANCE specifies the movement
distance with which point has been reached in case it has been
a movement starting in the current buffer."
  (cond ((symbolp mode)
         (and (boundp mode)
              (symbol-value mode)))
        ((integerp mode)
         (and distance (/= 0 distance) (<= (abs distance) mode)))
        ((consp mode)
         (apply (car mode) (cdr mode)))
        (t mode)))