On Wed, Sep 22, 2004 at 05:56:43PM +0200, Albert Reiner wrote:
>
> Sometimes, when debugging macros, I find it convenient to wrap a PRINT
> around the macro expansion. However, I am surprised at the following
> behavior:
> As you can see, a call to FOO prints the expansion twice, a call to
> BAR only once.
I suspect that the second print-out is the return value from print.
> Moreover, when gensyms are involved, in those cases
> where two versions are printed, the gensyms have different numbers,
> the first version is the correct expansion, and the second one always
> has the same gensym numbers (and presumably the same symbols).
I don't follow. Perhaps an example is in order?