bug-texinfo
[Top][All Lists]
Advanced

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

Re: @cindex no longer expands macros


From: Gavin Smith
Subject: Re: @cindex no longer expands macros
Date: Thu, 25 Jun 2020 16:05:46 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

On Thu, Jun 25, 2020 at 08:26:35AM +0200, Werner LEMBERG wrote:
> 
> [git 63711e8c6fafe9b3cde2a2d0be507032d7ee7bf6]
> 
> Folks,
> 
> 
> consider the following example.
> 
> ======================================================================
> 
> \input texinfo.tex
> 
> @macro q{TEXT}
> @quoteleft{}\TEXT\@quoteright{}
> @end macro
> 
> @cindex @q{accent} articulation
> text
> 
> @printindex cp
> 
> @bye
> 
> ======================================================================
> 
> Attached you can find the tex output using texinfo.tex from
> 2019-02-16.14 and 2020-05-22.11; as you can see, the @q macro
> is no longer correctly expanded in the new version.

As you can see, it is expanded, it is just that the control sequences 
are not recognized because the index file uses '\' instead of '@'.  This 
is an old problem and mentioned as a possible pitfall in the "Macro 
Details" node of the manual.

This problem would go away if we could use @ consistently as the escape 
character for index files.  I had thought we had a solution for this, 
but apparently it is not quite good enough.

Using @ consistently in index files by default relies on both texi2dvi 
and texindex being new enough.

Nevertheless, I have attempted a fix in commit 1094ba7c9.  Let's hope it 
doesn't break anything else.






reply via email to

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