summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2019-08-26 22:53:24 +0200
committerMarco Wahl <marcowahlsoft@gmail.com>2019-08-26 22:53:24 +0200
commit3c24be094516b1db4e4f77923bf65f1d17ef9218 (patch)
treeb6172705f83eeba85f8f6dcd344def4c32869945
parent6f5516953f547446aff2e0aa7ebcd85347451457 (diff)
downloadorg-mode-3c24be094516b1db4e4f77923bf65f1d17ef9218.tar.gz
org: Equip inline images with key-map `image-map'
-rw-r--r--lisp/org.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index d24d495..ea2c751 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16653,6 +16653,8 @@ conventions:
type. In this case, that link must be a well-formed plain
or angle link, i.e., it must have an explicit \"file\" type.
+Equip each image with the key-map `image-map'.
+
When optional argument INCLUDE-LINKED is non-nil, also links with
a text description part will be inlined. This can be nice for
a quick look at those images, but it does not reflect what
@@ -16771,6 +16773,7 @@ boundaries."
(overlay-put
ov 'modification-hooks
(list 'org-display-inline-remove-overlay))
+ (overlay-put ov 'keymap image-map)
(push ov org-inline-image-overlays)))))))))))))))
(defun org-display-inline-remove-overlay (ov after _beg _end &optional _len)