mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 00:32:53 +00:00
org-display-inline-images: Force-refresh image cache
* lisp/org.el (org-display-inline-images): Always refresh cached images when displaying image overlays. See Emacs bug#59902. This fixes images not updating when image file is changed on disk. Reported-by: William Denton <wtd@pobox.com> Link: https://orgmode.org/list/87wn7287n2.fsf@localhost
This commit is contained in:
parent
337d805354
commit
7fefc3027b
|
@ -16322,6 +16322,10 @@ buffer boundaries with possible narrowing."
|
|||
(org-element-property :end link))
|
||||
(skip-chars-backward " \t")
|
||||
(point)))))
|
||||
;; FIXME: See bug#59902. We cannot rely
|
||||
;; on Emacs to update image if the file
|
||||
;; has changed.
|
||||
(image-flush image)
|
||||
(overlay-put ov 'display image)
|
||||
(overlay-put ov 'face 'default)
|
||||
(overlay-put ov 'org-image-overlay t)
|
||||
|
|
Loading…
Reference in a new issue