Subject: bug#53227: master: Wrong error message with M-: (funcall).

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 13 Jan 2022 10:32:44 +0100

Robert Pluim <[email-masked]> writes:

> Itʼs not Ffuncall's responsibility to check that, itʼs 'eval' that
> should be doing it. Compare with eg M-: (format), which correctly
> signals 'wrong-number-of-arguments.

Or rather macroexpand-all:

(macroexpand-all '(format))
=> (format)

(macroexpand-all '(funcall))
=> (funcall nil)

Perhaps Stefan has some insights into this; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no