Subject: Regression in macroexpand from a4ec9ca (April 1)
From: Ship Mints <[email-masked]>
To: [email-masked]
Cc: Daniel Mendler <[email-masked]>
Date: Sat, 5 Apr 2025 09:23:41 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Below found in the wild expanding a macro from Daniel's marginalia package.

Emacs 30
(macroexpand-all '(foo bar)) -> (foo bar)
(macroexpand-all '((foo) bar)) -> ((foo) bar)

master
(macroexpand-all '(foo bar)) -> (foo bar)
(macroexpand-all '((foo) bar)) -> signals an error

Debugger entered--Lisp error: (wrong-type-argument symbolp (foo))
  signal(wrong-type-argument (symbolp (foo)))
  function-get((foo) compiler-macro)

Whether this is an intended or unintended consequence, I can't say, not
being a macro expert.

-Stephane (and Daniel)