On Thu, Mar 27, 2008 at 09:25:38AM -0500, Kyle Wheeler wrote: > On Thursday, March 27 at 02:22 PM, quoth Steffen Weise: > > Just a minor flaw: when I return to index menu the status bar says > > "Usage: set variable=yes|no". It only happens if I've called your > > script. Any ideas about this? > > That's a problem that occurred with the original macro that I had on > the page, because there was a typo in it. I've updated the webpage to > be more correct. Here's the issue: in the macro definition, you need > to put a backslash in front of the $'s, so that they're evaluated when > the macro is evaluated, rather than when the macro is defined. For > example: > > macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\ > <enter-command> unset pipe_decode<enter>\ > <pipe-message>extract_url.pl<enter>\ > <enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs" > > Note the \$ parts? That fixes that "set variable" problem.
Thanks for the hint, it's working error-free now! :) I haven't much dealed with macros in mutt, yet, but I should do to get a better understanding of it. -- Regards Steffen
