[PATCH] Little mistake in quoting documentation

Paolo Bonzini <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
The quoting documentation has this example:

   define(`x', `substr(ab')
   define(`y', `cde, `1', `3')')
   x`'y => bcd

And it says that it behaves as substr(`abcde', `1', `3'); this is not 
exact because `ab' and `cde' are active:

   define(`ab', `AB')
   define(`cde', `CDE')
   define(`x', `substr(ab')
   define(`y', `cde, `1', `3')')
   x`'y => BCD

Therefore, the first parameter of substr behaves as ab`'cde, not 
`abcde'.  I attach a simple patch to fix this.

Paolo

2007-12-13  Paolo Bonzini  <[email protected]> (tiny change)
             Giovanni Toffetti  <[email protected]>

	* doc/m4.texinfo: Fix quoting of a quoting example.


diff --git a/doc/m4.texinfo b/doc/m4.texinfo
index 14017d8..f57402b 100644
--- a/doc/m4.texinfo
+++ b/doc/m4.texinfo
@@ -1509,7 +1509,7 @@ empty string.
  @cindex rescanning
  The output of macro evaluations is always rescanned.  The following
  example would yield the string @samp{bcd}, exactly as if @code{m4}
-has been given @w{@samp{substr(`abcde', `1', `3')}} as input:
+has been given @w{@samp{substr(ab`'cde, `1', `3')}} as input:

  @example
  define(`x', `substr(ab')
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.