[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7109307: * lisp/emacs-lisp/syntax.el (syntax-propertize-rules): U
From: |
Stefan Monnier |
Subject: |
master 7109307: * lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Use `macroexp-let2` |
Date: |
Thu, 11 Mar 2021 21:52:26 -0500 (EST) |
branch: master
commit 7109307c1a62fb3ab781989d495bacd3c2b15a2e
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Use `macroexp-let2`
This also silences the recently introduced compilation warning.
---
lisp/emacs-lisp/syntax.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index bee2f96..6d5b04b 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -290,12 +290,13 @@ all RULES in total."
',(string-to-syntax (nth 1 action)))
,@(nthcdr 2 action))
`((let ((mb (match-beginning ,gn))
- (me (match-end ,gn))
- (syntax ,(nth 1 action)))
- (if syntax
- (put-text-property
- mb me 'syntax-table syntax))
- ,@(nthcdr 2 action)))))
+ (me (match-end ,gn)))
+ ,(macroexp-let2 nil syntax (nth 1 action)
+ `(progn
+ (if ,syntax
+ (put-text-property
+ mb me 'syntax-table ,syntax))
+ ,@(nthcdr 2 action)))))))
(t
`((let ((mb (match-beginning ,gn))
(me (match-end ,gn))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 7109307: * lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Use `macroexp-let2`,
Stefan Monnier <=