[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org 7fefc3027b 1/2: org-display-inline-images:
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org 7fefc3027b 1/2: org-display-inline-images: Force-refresh image cache |
Date: |
Sat, 10 Dec 2022 05:58:06 -0500 (EST) |
branch: externals-release/org
commit 7fefc3027b2954ba8cb2610472cd6db81eab7f27
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
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
---
lisp/org.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/org.el b/lisp/org.el
index 816c165e1d..19f94c5e23 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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)