From 7f65b3b009f562ac0e6e7d84b41d93d12744037b Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 15 Jun 2010 05:36:19 +0200 Subject: [PATCH] Avoid texinfo bug with backslashes in macro arguments. * doc/autoconf.texi (Text processing Macros) (Common Shell Constructs): Do not use @dvar with backslashes. --- ChangeLog | 6 ++++++ doc/autoconf.texi | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4e75a7657..c5c751fc3 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 42469db6d..6d6555cd3 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, -- 2.47.3