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

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 18 Oct 2020 09:57:53 +0200

Andreas Schwab <[email-masked]> writes:

> ELISP> (macroexpand-all (eval-sexp-add-defvars (elisp--eval-defun-1
> (macroexpand '(funcall (function mac/z))))))
> (progn "z")

And

(macroexpand-all (eval-sexp-add-defvars (elisp--eval-defun-1 (macroexpand '(funcall 'mac/z)))))
=> (funcall 'mac/z)                                         

Which is what the bug reporter is wondering about.  The doc string says

--
Like ‘quote’, but preferred for objects which are functions.
--

And it's not quite like `quote', as the examples show us, and the
documentation should mention this.

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