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

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

[elpa] externals-release/org df84100 3/4: org-display-inline-images: Sil


From: ELPA Syncer
Subject: [elpa] externals-release/org df84100 3/4: org-display-inline-images: Silence byte-compiler on Emacs <26
Date: Sat, 1 May 2021 00:57:13 -0400 (EDT)

branch: externals-release/org
commit df84100d0c3b5aaa1ec5d4c3baf30aad73b21841
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    org-display-inline-images: Silence byte-compiler on Emacs <26
    
    * lisp/org.el (org-display-inline-images): Guard image-map use with
    boundp check rather than version check.
    
    Guarding with a boundp will pacify the byte-compiler and is a direct
    check that the thing we care about is available, so there's no need to
    rely on the version check.
    
    Reported-by: Ihor Radchenko <yantar92@gmail.com>
    Link: https://orgmode.org/list/87y2d2mqik.fsf@localhost
---
 lisp/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 492824f..28628bd 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16491,8 +16491,7 @@ buffer boundaries with possible narrowing."
                              (overlay-put
                               ov 'modification-hooks
                               (list 'org-display-inline-remove-overlay))
-                             (when (<= 26 emacs-major-version)
-                               (cl-assert (boundp 'image-map))
+                             (when (boundp 'image-map)
                                (overlay-put ov 'keymap image-map))
                              (push ov org-inline-image-overlays))))))))))))))))
 



reply via email to

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