Function: preview-next-border
preview-next-border is a byte-compiled function defined in preview.el.
Signature
(preview-next-border BACKWARDS)
Documentation
Search for the next interesting border for preview-at-point.
Searches backwards if BACKWARDS is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-next-border (backwards)
"Search for the next interesting border for `preview-at-point'.
Searches backwards if BACKWARDS is non-nil."
(let (history preview-state (pt (point)))
(catch 'exit
(while
(null
(memq
(setq preview-state
(if backwards
(if (> (setq pt
(previous-single-char-property-change
pt 'preview-state)) (point-min))
(get-char-property (1- pt) 'preview-state)
(throw 'exit (or history (point-min))))
(if (< (setq pt
(next-single-char-property-change
pt 'preview-state)) (point-max))
(get-char-property pt 'preview-state)
(throw 'exit (or history (point-max))))))
'(active inactive)))
(setq history (and (not preview-state) pt)))
(or history pt))))