Function: preview-clearout
preview-clearout is an interactive and byte-compiled function defined
in preview.el.
Signature
(preview-clearout &optional START END TIMESTAMP EXCEPTION)
Documentation
Clear out all previews in the current region.
When called interactively, the current region is used.
Non-interactively, the region between START and END is
affected. Those two values default to the borders of
the entire buffer. If TIMESTAMP is non-nil, previews
with a timestamp property of it are kept. If EXCEPTION
is a non-nil overlay, then it is not cleared.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-clearout (&optional start end timestamp exception)
"Clear out all previews in the current region.
When called interactively, the current region is used.
Non-interactively, the region between START and END is
affected. Those two values default to the borders of
the entire buffer. If TIMESTAMP is non-nil, previews
with a `timestamp' property of it are kept. If EXCEPTION
is a non-nil overlay, then it is not cleared."
(interactive "r")
(dolist (ov (overlays-in (or start (point-min))
(or end (point-max))))
(and (or (not exception)
(not (eq ov exception)))
(overlay-get ov 'preview-state)
(not (and timestamp
(equal timestamp (overlay-get ov 'timestamp))))
(preview-delete ov))))