unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Nick Dokos <ndokos@gmail.com>
Cc: 41864@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	[thread overview]
Message-ID: <875z79t8t1.fsf@gnus.org> (raw)
In-Reply-To: <87a715gjcl.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Sun, 14 Jun 2020 22:20:58 -0400")

Nick Dokos <ndokos@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





  reply	other threads:[~2020-10-17 11:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-15  2:20 bug#41864: 28.0.50; funcall: attempting to call a macro does not always complain Nick Dokos
2020-10-17 11:02 ` Lars Ingebrigtsen [this message]
2020-10-17 12:50 ` Andreas Schwab
2020-10-17 14:11   ` Stefan Kangas
2020-10-17 18:08     ` Andreas Schwab
2020-10-18  7:57       ` Lars Ingebrigtsen
2020-10-18  8:52         ` Andreas Schwab
2020-10-18  9:03           ` Lars Ingebrigtsen
2020-10-18  9:34             ` Andreas Schwab
2020-10-18  9:45               ` Lars Ingebrigtsen
2020-10-18  9:51                 ` Andreas Schwab
2020-10-19  8:19                   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875z79t8t1.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=41864@debbugs.gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).