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

Re: Special need of key rebinding



On Tue, Feb 24, 2004 at 06:06:14AM EST, Raúl Núñez de Arenas Coronado wrote:
>  * David Yitzchak Cohen <lists+mutt_users@xxxxxxxxxxxxxx> dixit:

> > BTW - I wonder whether this works:
> > macro index r "<list-reply><group-reply>"
> 
>     It doesn't :(( In a list, '<group-reply>' gets added into the
> 'To:' address...

Oh, no problem: <group-reply> is not a valid RFC822 email address
(although your local MTA may accept it if there's a (somewhat unlikely)
user called "group-reply" on your server), so you can do this:
set editor="custom_editor"

...where custom_editor is something like this:

#!/bin/sh
perl -pie 's/(To:.*)<group-reply>/\1/' $1
vi $1

> > Now, if you want to post a followup to a message you're looking at, you'll
> > want to use the list-reply function; if you want to reply directly to the
> > author, you'll want to use the reply function.
> 
>     Good mnemonic ;) Thanks for the advice. I'll try my best to do
> it. BTW, Mozilla can add a 'Followup-To:' header, but not a
> 'Mail-Followup-To:'. Will it work in Mutt?... I'm testing, and I'll
> inform the list of the result.

I would tend to doubt it. . .

> > Here's what I have in my ~/.mutt/keymaprc.qwerty:
> > message-hook . 'bind pager r reply'
> > message-hook ~l 'macro pager r "<enter-command>bind pager r reply"'
> 
>     I don't understand... O:) You set up the same binding on both
> message hooks, the default one and the lists one :?

Well, there is a little difference:
The default hook simply binds 'r' to the reply function.  For lists,
though, 'r' is a macro that almost rebinds itself to the reply function,
but stops short of hitting the RETURN key, so the net result is that if
I type 'r' while looking at a mailing list message, I see in the bottom
of Mutt's screen something like this:
:bind pager r reply_
...where "_" designates the cursor, and then if I really want to reply
privately, I hit RETURN to do the rebind, and then type 'r' again to
actually reply.  If I decide that's not what I wanted to do, I hit ^G
instead to cancel the rebind, and type 'l' (or 'L' in my config) to post
a followup to the list instead.  In effect, typing 'r' while viewing
a list post asks me to confirm that I really want to reply privately,
rather than just letting me go right along without even warning me.

 - Dave

-- 
Uncle Cosmo, why do they call this a word processor?
It's simple, Skyler.  You've seen what food processors do to food, right?

Please visit this link:
http://rotter.net/israel

Attachment: pgpfgjCfbm0Uy.pgp
Description: PGP signature