bug-autoconf
[Top][All Lists]
Advanced

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

Re: backslashes in macro arguments


From: Patrice Dumas
Subject: Re: backslashes in macro arguments
Date: Mon, 14 Jun 2010 23:48:39 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Jun 14, 2010 at 09:35:33PM +0000, Karl Berry wrote:
> Hi Ralf,
> 
> Thanks for the report, as always.
> 
>     need to double backslashes in the macro definition, but is silent
>     about macro arguments.

> I think it is makeinfo that is doing the wrong thing here.  

I don't think so, because \ is used to quote commas in macro 
arguments (texinfo)Invoking Macros:

   Passing strings containing commas as macro arguments requires special
 care, since they should be properly "quoted" to prevent `makeinfo' from
 confusing them with argument separators.  To manually quote a comma,
 prepend it with a backslash character, like this: `\,'. 

Then it is quite logical to have a way to protect \. It is even said
in the manual:

   Other characters that need to be quoted in macro arguments are curly
 braces and backslash.  For example

      @MACNAME {\\\{\}\,}

And it is also necessary to have a way to quote { and }. So, I think 
that texi2dvi does it wrong...

It could be possible, however, to change the manual and say that ,
has to be quoted as @comma, and { and } as @{ and @}.

> Patrice, can you check how texi2html does, please?

texi2html does the same than makeinfo.

-- 
Pat



reply via email to

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