[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/htmlize a6f9f07 066/134: Decide at each macroexpansion whe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/htmlize a6f9f07 066/134: Decide at each macroexpansion whether to use `lexical-let' or `let'. |
Date: |
Sat, 7 Aug 2021 09:17:08 -0400 (EDT) |
branch: elpa/htmlize
commit a6f9f0786f494220f9ae12141fcca1a527e4335d
Author: Hrvoje Niksic <hniksic@gmail.com>
Commit: Hrvoje Niksic <hniksic@gmail.com>
Decide at each macroexpansion whether to use `lexical-let' or `let'.
This removes the need for explicit eval-and-compile.
---
htmlize.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/htmlize.el b/htmlize.el
index 529fd79..248d59d 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -331,16 +331,13 @@ output.")
(error "htmlize requires next-single-property-change or \
next-single-char-property-change")))
-(eval-and-compile
- (if (and (>= emacs-major-version 24)
- (not running-xemacs)
+(defmacro htmlize-lexlet (&rest letforms)
+ (if (and (boundp 'lexical-binding)
lexical-binding)
- (defmacro htmlize-lexlet (&rest stuff)
- `(let ,@stuff))
- ;; cl extensions have a lexical-let macro
- (defmacro htmlize-lexlet (&rest stuff)
- `(lexical-let ,@stuff)))
- (put 'htmlize-lexlet 'lisp-indent-function 1))
+ `(let ,@letforms)
+ ;; cl extensions have a macro implementing lexical let
+ `(lexical-let ,@letforms)))
+(put 'htmlize-lexlet 'lisp-indent-function 1)
;;; Transformation of buffer text: HTML escapes, untabification, etc.
- [nongnu] elpa/htmlize 1bc2f1b 118/134: Bump version., (continued)
- [nongnu] elpa/htmlize 1bc2f1b 118/134: Bump version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 726c77b 120/134: Correctly sort overlays in Emacs 24., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize a8b73f1 122/134: New option htmlize-untabify. (#21), ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 9145b68 128/134: Simplify ensuring of font-lock., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 86f22f2 132/134: Add Homepage to the package header, ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 999eef2 032/134: Support searching for any property change., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 7f94aa2 039/134: Conditionalize on color-instance-rgb-components., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 34845c5 042/134: Update comment., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize c847998 057/134: The future has come: switch to lexical scope., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 845329e 060/134: Don't attempt to use lexical binding in emacsen that don't support it., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize a6f9f07 066/134: Decide at each macroexpansion whether to use `lexical-let' or `let'.,
ELPA Syncer <=
- [nongnu] elpa/htmlize 58775c8 064/134: Improve introductory text., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize db4b76e 076/134: New file: NEWS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 87d4a43 080/134: Recognize tmp overlays with an overlay property., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 67b8bf3 086/134: Implement form feed replacement with <hr/> as a temporary overlay with, ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 9e4c0bc 089/134: Faces that come first take precedence over those that come later., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 5d9be53 093/134: Bumped version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize ece5b5f 095/134: Bumped version., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 974c169 098/134: Set `lexical-binding' to `t' in the first line of the file., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize 8593a5e 111/134: Put style information in <pre> tags., ELPA Syncer, 2021/08/07
- [nongnu] elpa/htmlize a0b55cb 112/134: Introduced option for styling <pre>, "screenshot" function., ELPA Syncer, 2021/08/07