From: Ralf Wildenhues Date: Tue, 15 Jun 2010 03:36:19 +0000 (+0200) Subject: Avoid texinfo bug with backslashes in macro arguments. X-Git-Tag: v2.66~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f65b3b009f562ac0e6e7d84b41d93d12744037b;p=thirdparty%2Fautoconf.git 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/ChangeLog b/ChangeLog index 4e75a765..c5c751fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-15 Ralf Wildenhues + + Avoid texinfo bug with backslashes in macro arguments. + * doc/autoconf.texi (Text processing Macros) + (Common Shell Constructs): Do not use @dvar with backslashes. + 2010-06-14 Eric Blake Make CONFIG_SITE handling more robust. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 42469db6..6d6555cd 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -12488,7 +12488,8 @@ Backslash-escape all characters in @var{string} that are active in regexps. @end defmac -@defmac m4_split (@var{string}, @dvar{regexp, [\t ]+}) +@c We cannot use @dvar because the macro expansion mistreats backslashes. +@defmac m4_split (@var{string}, @r{[}@var{regexp} = @samp{[\t ]+}@r{]}) @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 @@ for portability, should not include more than one newline. The bytes of Redirections can be placed outside the macro invocation. @end defmac -@defmac AS_ESCAPE (@var{string}, @dvar{chars, `\"$}) +@c We cannot use @dvar because the macro expansion mistreats backslashes. +@defmac AS_ESCAPE (@var{string}, @r{[}@var{chars} = @samp{`\"$}@r{]}) @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,