[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/doc/m4.texinfo,v [branch-1_4]
From: |
Eric Blake |
Subject: |
Changes to m4/doc/m4.texinfo,v [branch-1_4] |
Date: |
Sat, 12 Aug 2006 20:02:31 +0000 |
CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/08/12 20:02:30
Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.63
retrieving revision 1.1.1.1.2.64
diff -u -b -r1.1.1.1.2.63 -r1.1.1.1.2.64
--- doc/m4.texinfo 9 Aug 2006 12:28:00 -0000 1.1.1.1.2.63
+++ doc/m4.texinfo 12 Aug 2006 20:02:30 -0000 1.1.1.1.2.64
@@ -1231,6 +1231,8 @@
@end example
@xref{Quoting Arguments}, for an explanation of the double quotes.
+(You should try and improve this example so that clients of exch do not
+have to double quote. @pxref{Answers})
@cindex @acronym{GNU} extensions
@acronym{GNU} @code{m4} allows the number following the @samp{$} to
@@ -4707,6 +4709,21 @@
Some of the examples in this manuals are buggy, for demonstration
purposes. Correctly working macros are presented here.
+The @code{exch} macro (@pxref{Arguments}) as presented requires clients
+to double quote their arguments. A nicer definition, which lets
+clients follow the rule of thumb of one level of quoting per level of
+parentheses, involves adding quotes in the definition of @code{exch}, as
+follows:
+
address@hidden
+define(`exch', ``$2', `$1'')
address@hidden
+define(exch(`expansion text', `macro'))
address@hidden
+macro
address@hidden text
address@hidden example
+
The @code{cleardivert} macro (@pxref{Cleardiv}) cannot, as it stands, be
called without arguments to clear all pending diversions. That is
because using undivert with an empty string for an argument is different
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/01
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/03
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/04
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/08
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/09
- Changes to m4/doc/m4.texinfo,v [branch-1_4],
Eric Blake <=
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/14
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/15
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/16
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/17
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/22
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2006/08/24