Chris Garrigues <[EMAIL PROTECTED]> writes:

> It appears that macro expansion can only be done in certain places.

If you're comfortable with patching TMDA, you can run patch with this
diff in the TMDA subdirectory of the installation.  It changes one
line and adds a second in the FilterParser.py file.  Make a backup of
FilterParser.py if you're worried.

I'll get this checked into CVS shortly.


Tim

Index: FilterParser.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/FilterParser.py,v
retrieving revision 1.45
diff -u -r1.45 FilterParser.py
--- FilterParser.py	13 Sep 2002 05:42:11 -0000	1.45
+++ FilterParser.py	27 Sep 2002 03:51:52 -0000
@@ -466,10 +466,11 @@
             text = ''
             while rhs:
                 try:
-                    (text, rhs) = macro.findname(rhs)
+                    (lhs, rhs) = macro.findname(rhs)
                 except ValueError:
                     text += rhs
                     break
+                text += lhs
                 (args, rhs) = macro.getargs(rhs)
                 definition = macro.expandargs(args)
                 # Create a copy of the list of macros and remove

Reply via email to