Hi,
  as a reaction to

http://lists.gnu.org/archive/html/m4-discuss/2005-02/msg00000.html

I've written the attached patch.  Would you check it to m4 CVS?

Have a nice day,
        Stepan Kasal
2005-02-03  Stepan Kasal  <[EMAIL PROTECTED]>

        * TODO: Add two items.

Index: TODO
===================================================================
RCS file: /cvsroot/m4/m4/TODO,v
retrieving revision 1.13
diff -u -r1.13 TODO
--- TODO        12 Aug 2003 15:33:56 -0000      1.13
+++ TODO        3 Feb 2005 07:03:10 -0000
@@ -59,6 +59,21 @@
 
 * FEATURES OR PROBLEMS
 
+  + We need a way to ask for one level of expansion; this is somewhat
+    similar, but not identical, to `defn'.  For example:
+       expandonce(`macro(a, b, c)')
+    would return the body of the macro, quoted, with parameters substituted;
+       expandonce(`include(`file')')
+    would return the contents of the file, in a quote pair.
+    This would help with problems like
+       http://lists.gnu.org/archive/html/m4-discuss/2005-02/msg00000.html
+    and perhaps could also address this
+       http://lists.gnu.org/archive/html/autoconf/2004-12/msg00095.html
+       http://lists.gnu.org/archive/html/autoconf/2004-12/msg00094.html
+
+  + m4 should keep an ``execution stack'' of macros, which could applications
+    use in their error messages.
+
   + Implement discarding comment delimiters with the syntax table.
 
   + The $ used in user defined macros cannot be changed through
@@ -68,7 +83,7 @@
     some warnings, but it passes the tests.
 
   + Make m4 show include dependencies like gcc so Makefile targets are
-    updated When their (included) input files are updated (Erick B).
+    updated when their (included) input files are updated (Erick B).
 
   + Sort out all the weird forms of interaction between changesyntax,
     changecom and changequote.  What happens if you install a quote with
_______________________________________________
Bug-m4 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-m4

Reply via email to