bug-texinfo
[Top][All Lists]
Advanced

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

Re: wrong macro expansion for some commands


From: Werner LEMBERG
Subject: Re: wrong macro expansion for some commands
Date: Sun, 18 Jul 2004 19:15:27 +0200 (CEST)

> >   @defcodeindex ma
> > 
> >   @macro xxx
> >   @maindex xxx
> >   @end macro
> > 
> >   foo
> >   @xxx
> >   bar
> > 
> > After a call to `makeinfo -E', it expands to
> > 
> >   @defcodeindex ma
> > 
> >   @macro xxx
> >   @maindex xxx
> >   @end macro
> > 
> >   foo
> >   @maindex xxx
> >                                           <---
> >   bar
> > 
> > The marked empty line is wrong and shouldn't be emitted at all
> 
> IIRC, this could be hard to do in the macro-expanding code, since it
> doesn't know anything about the surrounding text, and some
> situations need the newline.

Why should makeinfo be more clever than the user?  Please give an
example.

> Can I suggest using something like
> 
>   foo
>   @xxx bar
> 
> instead?  This should work regardless of whether the macro emits the
> newline.

This won't work for me.  I have something like this:

  @Start {xxx}
  @Item {yyy}
  @End {zzz}

which should expand to

  @defmac xxx
  @maindex xxx
  @defmacx yyy
  @maindex yyy
  @defmacx zzz
  @maindex zzz


     Werner




reply via email to

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