GNU bug report logs - #8712
24.0.50; getting the "Forgot to expand macro XXXX" error - problem? solution?

Previous Next

Package: emacs;

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

Date: Sat, 21 May 2011 21:02:02 UTC

Severity: normal

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 8712 <at> debbugs.gnu.org
Subject: RE: bug#8712: 24.0.50;
	getting the "Forgot to expand macro XXXX" error - problem? solution?
Date: Sun, 22 May 2011 13:00:24 -0700
> I think the patch below fixes your problem, thanks.  Please confirm.

I patched the corresponding functions by hand, loaded their original source
files, then loaded the patched functions.  I then byte-compiled
icicles-cmd[12].el.  No byte-compilation errors, so it seems, at least on the
surface, that this is fixed.  The compilation was _very_ slow, but that's no
doubt because I used the source code rather than byte-compiled code.

Thanks for the fix.


I do have a question about the follownig warning, however (which I have not
seen/noticed before):

 (lambda (opt) ...) quoted with ' rather than with #'

That presumably comes from a defmacro that has, in effect, this:

 ` ... (let* (... (something (lambda (opt)...))))

That is, an unquoted lambda inside a backquote.  The backquote expands to (quote
(lambda...)) no doubt.

I have a few such macros, and I use them heavily.  I get this same warning
zillions of times (460 times just for icicles-cmd1.el, 30 times for
icicles-cmd2.el).  This is quite annoying.

What is the suggested/recommended way to write such code, to avoid this warning?
Do I now need to add #' in front of a lambda inside a backquote?





This bug report was last modified 13 years and 315 days ago.

Previous Next


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