projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c2ecb4
)
Fix compiler macro expansion bug
author
Mattias Engdegård
<mattiase@acm.org>
Sat, 17 Dec 2022 17:20:48 +0000
(18:20 +0100)
committer
Mattias Engdegård
<mattiase@acm.org>
Sun, 18 Dec 2022 13:48:54 +0000
(14:48 +0100)
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
When a compiler-macro handler is re-invoked (after macro-expanding
arguments), actually use the result instead of pointlessly dropping it
on the floor.
lisp/emacs-lisp/macroexp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/macroexp.el
b/lisp/emacs-lisp/macroexp.el
index f4df40249de94ca29a25edf7623b45b201c82a0b..8953e5fd01952a80c2e6fc87a692ef0de782184e 100644
(file)
--- a/
lisp/emacs-lisp/macroexp.el
+++ b/
lisp/emacs-lisp/macroexp.el
@@
-486,7
+486,7
@@
Assumes the caller has bound `macroexpand-all-environment'."
(setq form (macroexp--compiler-macro handler newform))
(if (eq newform form)
newform
- (macroexp--expand-all
new
form)))
+ (macroexp--expand-all form)))
(macroexp--expand-all newform))))))
(_ form))))
(pop byte-compile-form-stack)))