emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode 0f7eae8113 3/3: Merge pull request #745 from


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 0f7eae8113 3/3: Merge pull request #745 from kimim/clear-image-cache
Date: Sat, 28 Jan 2023 06:01:25 -0500 (EST)

branch: elpa/markdown-mode
commit 0f7eae811308f92b8681b5411f7a5035d1fcd5a7
Merge: b094ae0ac9 1eeb65dece
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #745 from kimim/clear-image-cache
    
    clear-image-cache when remove inline image
---
 CHANGES.md       | 1 +
 markdown-mode.el | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index 7c62a7c0d0..d2fd6426a3 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -17,6 +17,7 @@
     - Don't spell-check against pandoc references. [GH-572][]
     - Support tree-sitter-based major modes used by Emacs 29.
     - Highlight "geo" URI scheme [GH-739][]
+    - `clear-image-cache` to make toggle inline image update.
 
 *   Bug fixes:
     - Don't override table faces by link faces [GH-716][]
diff --git a/markdown-mode.el b/markdown-mode.el
index 0133e07d3c..7774a343c6 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -8605,7 +8605,8 @@ This can be toggled with `markdown-toggle-inline-images'
 or \\[markdown-toggle-inline-images]."
   (interactive)
   (mapc #'delete-overlay markdown-inline-image-overlays)
-  (setq markdown-inline-image-overlays nil))
+  (setq markdown-inline-image-overlays nil)
+  (when (fboundp 'clear-image-cache) (clear-image-cache)))
 
 (defcustom markdown-display-remote-images nil
   "If non-nil, download and display remote images.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]