* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Use macroexp-let2
This also silences the recently introduced compilation warning.
This commit is contained in:
parent
b08b2e03b2
commit
7109307c1a
1 changed files with 7 additions and 6 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue