From: Drew Adams <drew.adams@oracle.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 15296@debbugs.gnu.org
Subject: bug#15296: 24.3.50; A macro object does not necessarily have `lambda' as its cadr
Date: Sat, 7 Sep 2013 07:23:39 -0700 (PDT) [thread overview]
Message-ID: <3633cc3f-1b4c-4d4e-a27f-e3c5be9735c7@default> (raw)
In-Reply-To: <87zjrozwzg.fsf@web.de>
> > AFAICT, (elisp) `Defining Macros' is the closest thing we have to doc
> > telling you how to test whether a Lisp object is a macro. There is no
> > `macro-p' predicate or similar in Emacs Lisp, unless I'm missing
> > something. (Shouldn't there be?)
>
> There is `macrop' in subr.el (since some months ago, I think).
Wow, that's weird. And thank you. That was the first thing I looked for
(the second was `macro-p'), and for some reason I didn't find it (and I'm
using only a recent Emacs 24 build for this testing).
But you are right. I must have somehow checked for that in a different
Emacs version. Anyway, that solves my problem wrt testing the type.
> > Anyway, this Elisp manual node says that a macro is a list whose car
> > is `macro' and whose `cdr' is a lambda expression. That's not true if
> > the `defmacro' was byte-compiled.
>
> Confusing, indeed.
Not confusing, actually. It's quite clear. And wrong, unfortunately.
So AFAICT this should remain open for now, as a doc bug.
next prev parent reply other threads:[~2013-09-07 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-07 5:39 bug#15296: 24.3.50; A macro object does not necessarily have `lambda' as its cadr Drew Adams
2013-09-07 11:34 ` Michael Heerdegen
2013-09-07 14:23 ` Drew Adams [this message]
2013-09-08 18:01 ` Stefan Monnier
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=3633cc3f-1b4c-4d4e-a27f-e3c5be9735c7@default \
--to=drew.adams@oracle.com \
--cc=15296@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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).