GNU bug report logs - #41864
28.0.50; funcall: attempting to call a macro does not always complain

Previous Next

Package: emacs;

Reported by: Nick Dokos <ndokos <at> gmail.com>

Date: Mon, 15 Jun 2020 02:22:01 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nick Dokos <ndokos <at> gmail.com>
Cc: 41864 <at> debbugs.gnu.org
Subject: bug#41864: 28.0.50; funcall: attempting to call a macro does not always complain
Date: Sat, 17 Oct 2020 13:02:02 +0200
Nick Dokos <ndokos <at> gmail.com> writes:

> 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?

That is indeed pretty odd.

(eq 'mac/z (function mac/z))
=> t

Does anybody here understand what's happening here?  

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




This bug report was last modified 4 years and 214 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.