]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compiler macro expansion bug
authorMattias Engdegård <mattiase@acm.org>
Sat, 17 Dec 2022 17:20:48 +0000 (18:20 +0100)
committerMattias 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

index f4df40249de94ca29a25edf7623b45b201c82a0b..8953e5fd01952a80c2e6fc87a692ef0de782184e 100644 (file)
@@ -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 newform)))
+                           (macroexp--expand-all form)))
                      (macroexp--expand-all newform))))))
             (_ form))))
     (pop byte-compile-form-stack)))