Function: org-display-inline-remove-overlay

org-display-inline-remove-overlay is a byte-compiled function defined in org.el.gz.

Signature

(org-display-inline-remove-overlay OV AFTER BEG END &optional LEN)

Documentation

Remove inline-display overlay if a corresponding region is modified.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-display-inline-remove-overlay (ov after _beg _end &optional _len)
  "Remove inline-display overlay if a corresponding region is modified."
  (when (and ov after)
    (setq org-inline-image-overlays (delete ov org-inline-image-overlays))
    ;; Clear image from cache to avoid image not updating upon
    ;; changing on disk.  See Emacs bug#59902.
    (when (overlay-get ov 'org-image-overlay)
      (image-flush (overlay-get ov 'display)))
    (delete-overlay ov)))