]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): less consing
authorMattias EngdegÄrd <mattiase@acm.org>
Sat, 13 Apr 2024 15:43:34 +0000 (17:43 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:11:48 +0000 (19:11 +0200)
(cherry picked from commit 616af565796f8c690dd9c7d1b2fa7607f2e2fa1e)

lisp/emacs-lisp/macroexp.el

index b87b749dd761fe142cd1b855059eadb84ef9da3f..bb4797cac8b18b584ebb52e373255b2070f5bfc8 100644 (file)
@@ -351,7 +351,7 @@ Assumes the caller has bound `macroexpand-all-environment'."
              (let ((default-tail nil)
                    (n 0)
                    (rest clauses))
-               (while rest
+               (while (cdr rest)
                  (let ((c (car-safe (car rest))))
                    (when (cond ((consp c) (and (memq (car c) '(quote function))
                                                (cadr c)))