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

Re: Question about key bindings



Disclaimer: I haven't even looked at the involved code here, so everything
below is purely conjecture.  Can somebody familiar with the keybinding
code comment, please?

On Thu, Dec 11, 2003 at 05:05:09PM +0100, Jens Paulus wrote:

> here is a question about key bindings.

...and here is an answer about said subject :-)

> The L key is by default index
> bound with list-reply and at the same time generic bound with
> bottom-page which you can see when you open the help screen. This
> collision makes pressing the L key only execute list-reply and not
> bottom-page which I would like to have.

Right - an index bind takes precedence over a generic bind within the
index menu.  In other words, if a "bind index l blahblahblah" exists, it
doesn't matter whether or not there is a "bind generic l somethingorother"
anywhere.

> Now if I do
> :bind index L noop
> I would expect that now that the index binding is gone the generic
> binding is automatically active but it is not. Why?

Binding something to noop doesn't remove the keybinding, obviously :-)

In other words, "noop"ing a key doesn't remove it from the keybinding
table ... net result, the noop keybinding takes precedence over the
real keybinding.  Bug? kinda.  Wishlist? definitely.

> Then even if I do
> :bind generic L bottom-page
> to activate the generic binding it still remains inactive although a
> generic binding is supposed to work in the index menu as well. Why?

Since the index binding is consulted first, it doesn't matter what you
bind it to with generic.  Mutt never even looks at it.

> Only if I do
> :bind index L bottom-page
> it works.

Here, you're changing the index binding to something more useful than noop.

> And I bind the list-reply function to a different key.

You can bind it to the R key, BTW, using some neat config magic posted
here a while ago.

 - 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: pgpJkslE1BKBx.pgp
Description: PGP signature