bug-texinfo
[Top][All Lists]
Advanced

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

Re: another texinfo.tex bug in \scanmacro


From: Norbert Preining
Subject: Re: another texinfo.tex bug in \scanmacro
Date: Thu, 17 Mar 2016 10:31:05 +0900
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Gavin,

> Why not use a different name for the \lw macro defined in the @tex
> block, so it isn't used in its own definition?  That's the cause of

Ok, I tried your  suggestion, but that again breaks:

code >>>>>>>>>>>>>>>>>>>>>>>>>>>
\input texinfo   @c -*-texinfo-*-

@iftex
@tex
\def\aaa#1{Hello #1}
@end tex
@end iftex

@macro bbb{word}
@tex
\\aaa{\word\}
@end tex
@end macro

@bbb{World}

@bye
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
gives
./bla.texinfo:15: Undefined control sequence.
l.2 \aaa
        {World}
\scanmacro ...atspaces }\scantokens {#1\texinfoc }
                                                  \aftermacro 
l.15 @bbb{World}

tested with latest texinfo.tex


The problem goes away when the I use
        @macro bbb{word}
        \\aaa{\word\}
        @end macro
(without the @tex address@hidden tex)

Is this just an incorrect usage of macro definitions and @tex
in the original sources, that "just happened" to work till 6.0,
or is there something else behind?

Thanks

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------



reply via email to

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