<<< Date Index >>>     <<< Thread Index >>>

Re: Macro Help Needed



On Wed 11.Apr.07 22:59, Jorge Luis Gonzalez wrote:
I'm trying to incorporate the following two macros, which I found in
somewhat different form in the "Woodnotes on Mutt" writeup:

macro index "A" "<pipe-message>abook --add-email-quiet<return>"
macro pager "A" "<pipe-message>abook --add-email-quiet<return>"

The Woodnotes original has it as:

macro index,pager A "<pipe-message>abook --add-email-quiet<return>" \
"Add email address of sender to abook."

That didn't work at all; my version, split up without the doc string
and with the mapped key quoted, got me somewhat closer, but it's still
throwing an error:

/usr/home/jorgelg/bin/abook --add-email: not found

You need to quote the argument to pipe-message:

        '<pipe-message>"abook --add-email-quiet"<return>'

Cheers.

--
redondos

Attachment: pgphkcXfamcBR.pgp
Description: PGP signature