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

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

[nongnu] elpa/htmlize 845329e 060/134: Don't attempt to use lexical bind


From: ELPA Syncer
Subject: [nongnu] elpa/htmlize 845329e 060/134: Don't attempt to use lexical binding in emacsen that don't support it.
Date: Sat, 7 Aug 2021 09:17:07 -0400 (EDT)

branch: elpa/htmlize
commit 845329e5e639329fb2ca19988b84947193d72943
Author: Hrvoje Niksic <hniksic@gmail.com>
Commit: Hrvoje Niksic <hniksic@gmail.com>

    Don't attempt to use lexical binding in emacsen that don't support it.
---
 htmlize.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/htmlize.el b/htmlize.el
index b81e502..efd7a21 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -330,7 +330,9 @@ output.")
 next-single-char-property-change")))
 
 (eval-and-compile
-  (if lexical-binding
+  (if (and (>= emacs-major-version 24)
+           (not running-xemacs)
+           lexical-binding)
       (defmacro htmlize-lexlet (&rest stuff)
         `(let ,@stuff))
     ;; cl extensions have a lexical-let macro



reply via email to

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