GNU bug report logs -
#14422
Apply eager-macroexpansion everywhere (eval-region, ...)
Previous Next
Reported by: Achim Gratz <Stromeko <at> nexgo.de>
Date: Sun, 19 May 2013 14:28:01 UTC
Severity: minor
Tags: moreinfo
Found in version 24.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Well, the code does declare the variable symbol special and initializes
> it nil, so finding the symbol undefined during compilation and/or macro
> expansion would constitute a bug in either ERT or Emacs, no?
The defvar is only executed at run time (although it does have an
effect at compile time, which is to tell the compiler that the variable
will exist at run time).
So using `ll' during the macro expansion is wrong.
If you want `ll' to defined earlier, you can wrap it in
`eval-and-compile' (tho it's better not to abuse it). I can't tell what
solution I'd recommend in your case, since your distilled test case is
"too distilled" to understand what it's trying to do.
Stefan
This bug report was last modified 4 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.