Subject: bug#41864: 28.0.50; funcall: attempting to call a macro does not always complain

From: Andreas Schwab <[email-masked]>
Date: Sat, 17 Oct 2020 14:50:35 +0200

On Jun 14 2020, Nick Dokos wrote:

> If I attempt the same thing with a macro however, it does not always
> fail:
>
>     (defmacro mac/z () "z")
>     (funcall 'mac/z) ==> fails with Invalid function: mac/z
>     (funcall (function mac/z)) ==> "z"
>
> Should it fail in the last case?

Worksforme.

ELISP> (defmacro mac/z () "z")
mac/z
ELISP> (funcall (function mac/z))
*** Eval error ***  Invalid function: mac/z

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."