bug-texinfo
[Top][All Lists]
Advanced

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

Re: Using macros in @item


From: Stepan Kasal
Subject: Re: Using macros in @item
Date: Mon, 27 Oct 2003 11:45:56 +0100
User-agent: Mutt/1.4.1i

Hello!

Karl pointed out this:
        @tex
        {\globaldefs = 1 \smallfonts}
        @end tex
I'd say that for ``makeinfo --iftex'' to be usefull, it should not try to
parse the contents of @address@hidden tex.

And re the following:

> >     well, it seems clear the makeinfo -E should silently work as a macro
> >     preprocessor, omitting as much of the usual checks as possible.
> 
> I see an issue with that behavior. If you have something like
> 
> @iftex
> @macro expansion
> expanding tex
> @end macro
> @end iftex
> 
> @ifnottex
> @macro expansion
> not expanding tex
> @end macro
> @end ifnottex
> 
> It won't work anymore. Maybe not an issue but worth noting.

I think you are right.  So I wasn't true that makeinfo should not try to
parse the source at all.   It should follow the various @if...
conditionals; that it can decide whether a macro definition is to be
remembered or just passed by.

If any of the readers is going to submit a patch, it would be great.

Otherwise I beleive that this mail will follow his brothers to a quiet
place somewhere in the Karl's home, and wait there quietly for the next
few years...         :-)

Stepan




reply via email to

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