"EZ" == Eli Zaretskii writes:

 >> i.e., the @ovar was expanded when it appeared on its own, but was
 >> not expanded when used in an argument of @defmac.
 >> 
 >> As a result, texi2dvi does not work - it complains that @ovar is
 >> not defined.
 >> 
 >> is this a bug or a feature?

 EZ> It's a limitation of macros in Texinfo: macros in
 EZ> @def... commands are not supported.

I.e. they should not be used, or it is not yet implemented?
[i.e. it is a temporary limitation or a general limitation which will
not be resolved?]
Is the reason they are not supported in difficulties of implementation?

the following hack seems to produce a correct texinfo source file
which is processed by TeX without errors:

perl -p -e 's,\@defmac,\@r{12345},; s,\@end defmac,\@r{54321},' test.texi | \
makeinfo --macro-expand=- | \
perl -p -e 's,\@r\{12345\},\@defmac,;s,\@r\{54321\},\@end defmac,' > test1.texi

so i wonder why makeinfo does not expand macros everywhere?

Best,
v.


_______________________________________________
Bug-texinfo mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to