Fix an incorrect quoting example; reported by Eric Sunshine.

This commit is contained in:
Paul Eggert 2004-01-06 21:11:30 +00:00
parent 82fea9e4f7
commit df495a3499
2 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-01-06 Paul Eggert <eggert@twinsun.com>
* doc/autoconf.texi (One Macro Call): Fix an incorrect
example, and add more examples. Reported by Eric Sunshine.
2004-01-05 Paul Eggert <eggert@twinsun.com>
* doc/autoconf.texi (Limitations of Usual Tools):

View File

@ -7504,8 +7504,8 @@ define([car], [$1])
@noindent
The two pairs of quotes above are not part of the arguments of
@code{define}; rather, they are understood by the top level when it
tries to find the arguments of @code{define}. Therefore, it is
equivalent to write:
tries to find the arguments of @code{define}. Therefore, assuming
@code{car} is not already defined, it is equivalent to write:
@example
define(car, $1)
@ -7548,7 +7548,7 @@ car([#])
@result{}#
@end example
The reader will easily understand the following examples:
Here are more examples:
@example
car(foo, bar)
@ -7559,9 +7559,19 @@ car((foo, bar))
@result{}(foo, bar)
car([(foo], [bar)])
@result{}(foo
car([], [])
define([a], [b])car(a)
@result{}b
car([a])
@result{}b
car([[a]])
@result{}a
car([[[a]]])
@result{}[a]
car([])
@result{}
car([[]], [[]])
car([[]])
@result{}
car([[[]]])
@result{}[]
@end example