Function: preview-replace-active-icon

preview-replace-active-icon is a byte-compiled function defined in preview.el.

Signature

(preview-replace-active-icon OV REPLACEMENT)

Documentation

Replace the active Icon in OV by REPLACEMENT, another icon.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defsubst preview-replace-active-icon (ov replacement)
  "Replace the active Icon in OV by REPLACEMENT, another icon."
  (let ((img (overlay-get ov 'preview-image)))
    (setcdr (car img) (cdar replacement))
    (setcdr img (cdr replacement))
    (when (and preview-leave-open-previews-visible
               (consp img))
      ;; No "TeX icon" has been shown, so we flush manually.
      (image-flush (car img) t))))