bug-texinfo
[Top][All Lists]
Advanced

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

Re: @macro expansion bug


From: Eli Zaretskii
Subject: Re: @macro expansion bug
Date: Sat, 24 Mar 2001 11:19:42 +0200

> From: Akim Demaille <address@hidden>
> Date: 23 Mar 2001 16:48:42 +0100
> 
> >> The problem is not texi2dvi, but `makeinfo -E': It doesn't expand a
> >> user-defined macro in @deffn.
> 
> Eli> This is a known problem, and it is unlikely to be fixed without
> Eli> either a complete rewrite of makeinfo or an incompatible change
> Eli> in the syntax of @deffn and friends.
> 
> Can't we introduce a cleaner syntax, a new family of commands, and
> support the other one for a few releases?

Yes, we can, I think.

The cleaner syntax should simply use one of the three standard methods
of Texinfo directives:

   @foo{arg1, arg2, arg3}

   @bar Single Line Of Text Here

   @baz
   Block of Text
   Here
   @end baz

However, I suspect that @deffn uses a special form for a good reason:
the @def... directives use a variable number of arguments, which I
think presents problems in texinfo.tex implementation; and the
arguments could include commas and should be able to span multiple
lines.

So devising a replacement might not be an easy project, especially on
the TeX side.  Volunteers are welcome ;-)



reply via email to

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