GNU bug report logs - #15296
24.3.50; A macro object does not necessarily have `lambda' as its cadr

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sat, 7 Sep 2013 05:41:02 UTC

Severity: minor

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 15296 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 15296 <at> debbugs.gnu.org
Subject: Re: bug#15296: 24.3.50;
 A macro object does not necessarily have `lambda' as its cadr
Date: Sat, 07 Sep 2013 13:34:27 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> 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).

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


Michael.




This bug report was last modified 11 years and 336 days ago.

Previous Next


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