forked from mirrors/org-mode
org: Fix use of image-map for inline images
Don't set image-map for Emacs before v26. Variable image-map available with emacs-version 26. Reported by Johannes Brauer https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00391.html
This commit is contained in:
parent
747c6a8b55
commit
c0c790eb9b
|
@ -16804,7 +16804,9 @@ buffer boundaries with possible narrowing."
|
|||
(overlay-put
|
||||
ov 'modification-hooks
|
||||
(list 'org-display-inline-remove-overlay))
|
||||
(overlay-put ov 'keymap image-map)
|
||||
(when (<= 26 emacs-major-version)
|
||||
(cl-assert (boundp 'image-map))
|
||||
(overlay-put ov 'keymap image-map))
|
||||
(push ov org-inline-image-overlays))))))))))))))))
|
||||
|
||||
(defun org-display-inline-remove-overlay (ov after _beg _end &optional _len)
|
||||
|
|
Loading…
Reference in a new issue