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.2.0/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-keep-stale-images (consp img))
      ;; No "TeX icon" has been shown, so we flush manually.
      (image-flush (car img) t))
    (preview-overlay-updated ov)))