m4-patches
[Top][All Lists]
Advanced

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

[PATCH] Little mistake in quoting documentation


From: Paolo Bonzini
Subject: [PATCH] Little mistake in quoting documentation
Date: Thu, 13 Dec 2007 16:26:03 +0100
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

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  <address@hidden> (tiny change)
            Giovanni Toffetti  <address@hidden>

        * 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 @address@hidden(`abcde', `1', `3')}} as input:
+has been given @address@hidden(ab`'cde, `1', `3')}} as input:

 @example
 define(`x', `substr(ab')




reply via email to

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