bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug or feature ? with opened @verbatim in @macro


From: Eli Zaretskii
Subject: Re: bug or feature ? with opened @verbatim in @macro
Date: Wed, 27 Aug 2003 23:29:58 +0200

> Date: Tue, 26 Aug 2003 11:46:05 -0400
> From: address@hidden (Karl Berry)
> 
>     @macro v1{}
>     @verbatim
>     @end macro
> 
> Same story here -- I'll look at it, but I'm not surprised it doesn't
> work.  Opening an environment inside a macro and not closing it should
> work, but ...

... but it doesn't, I think.  That's because macros are expanded by
recursively entering the reader loop whose input is redirected to the
expanded macro, and the reader loop doesn't really know whether it's
the outer or inner one.  So it wants the environment to be closed
before it gets to the end of the macro expansion (which it erroneously
calls ``end of file''---should probably be ``end of input'').

We could probably try to fix that by making the code that outputs an
error message test whether we are in an inner reader loop.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]