Function: preview-at-point
preview-at-point is an interactive and byte-compiled function defined
in preview.el.
Signature
(preview-at-point)
Documentation
Do the appropriate preview thing at point.
If point is positioned on or inside of an unmodified preview area, its visibility is toggled.
If not, the surroundings are run through preview. The surroundings don't extend into unmodified previews or past contiguous previews invalidated by modifications.
Overriding any other action, if a region is
active (transient-mark-mode(var)/transient-mark-mode(fun)), it is run through preview-region.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-at-point ()
"Do the appropriate preview thing at point.
If point is positioned on or inside of an unmodified preview area,
its visibility is toggled.
If not, the surroundings are run through preview. The
surroundings don't extend into unmodified previews or past
contiguous previews invalidated by modifications.
Overriding any other action, if a region is
active (`transient-mark-mode'), it is run through `preview-region'."
(interactive)
(if (TeX-active-mark)
(preview-region (region-beginning) (region-end))
(catch 'exit
(dolist (ovr (overlays-in (max (point-min) (1- (point)))
(min (point-max) (1+ (point)))))
(let ((preview-state (overlay-get ovr 'preview-state)))
(when preview-state
(unless (eq preview-state 'disabled)
(preview-toggle ovr 'toggle (selected-window))
(throw 'exit t)))))
(preview-region (preview-next-border t)
(preview-next-border nil)))))