On Sunday, January 15 at 10:30 AM, quoth Nicolas Rachinsky:
* Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> [2006-01-14 22:10 -0500]:Try looking into <tag-prefix-cond><end-cond>, I think that'll get you where you want to go.I don't think they can do the job. I want to <tag-prefix> commands in the macro iff the macro is <tag-prefix>ed. Example: macro index a <do-something><save-message>foo\n 'a' should result in '<do-something><save-message>foo\n' '<tag-prefix>a' should result in '<do-something><tag-prefix><save-message>foo\n'
Ahh, I see. So, you basically want this: macro index a <do-something><save-message>foo\n macro index \;a <do-something><tag-prefix><save-message>foo\nIt's not 100% generic, because of course if you rebind ; to be something other than tag-prefix, then it won't work, but this should at least make it work the way you want (I think) with a default setup. I tested it -- the only difference is that when you press ; it doesn't put "tag-" into the lower message part, but it all works.
~Kyle --You can gain reconciliation from your enemies, but you can only gain peace from yourself.
-- Rubin "The Hurricane" Carter
Attachment:
pgpI2P5saKuxT.pgp
Description: PGP signature