bug-autoconf
[Top][All Lists]
Advanced

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

Re: backslashes in macro arguments


From: Ralf Wildenhues
Subject: Re: backslashes in macro arguments
Date: Tue, 15 Jun 2010 05:27:14 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

* Eric Blake wrote on Mon, Jun 14, 2010 at 11:30:46PM CEST:
> Any other ideas for a workaround that works for both info and pdf?

Not using macros here?

Cheers,
Ralf

   Avoid texinfo bug with backslashes in macro arguments.
   * doc/autoconf.texi (Text processing Macros)
   (Common Shell Constructs): Do not use @dvar with backslashes.

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index fadc2ef..be9f24a 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -12488,7 +12488,8 @@ Text processing Macros
 regexps.
 @end defmac
 
address@hidden m4_split (@var{string}, @dvar{regexp, [\t ]+})
address@hidden We cannot use @dvar because the macro expansion mistreats 
backslashes.
address@hidden m4_split (@var{string}, @address@hidden = @samp{[\t 
address@hidden)
 @msindex{split}
 Split @var{string} into an M4 list of elements quoted by @samp{[} and
 @samp{]}, while keeping white space at the beginning and at the end.
@@ -13110,7 +13111,8 @@ Common Shell Constructs
 Redirections can be placed outside the macro invocation.
 @end defmac
 
address@hidden AS_ESCAPE (@var{string}, @dvar{chars, `\"$})
address@hidden We cannot use @dvar because the macro expansion mistreats 
backslashes.
address@hidden AS_ESCAPE (@var{string}, @address@hidden = 
@samp{`\"address@hidden)
 @asindex{ESCAPE}
 Expands to @var{string}, with any characters in @var{chars} escaped with
 a backslash (@samp{\}).  @var{chars} should be at most four bytes long,



reply via email to

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