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

mutt/2566: changing key mapping does not 'unbind' old mapping



>Number:         2566
>Notify-List:    
>Category:       mutt
>Synopsis:       changing key mapping does not 'unbind' old mapping
>Confidential:   no
>Severity:       normal
>Priority:       medium
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 23 19:05:15 +0100 2006
>Originator:     chris Ox
>Release:        mutt  1.4.2.2i Fedora Core release 6 (Zod)
>Organization:
>Environment:
Fedora Core release 6 (Zod) Linux odin.localdomain 2.6.18-1.2849.fc6 #1 SMP Fri 
Nov 10 12:34:46 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
>Description:
After spending considerable time creating a list of "maps" for menus and 
various functions I found that some key combinations can not be bound or 
'unbound' successfully. 

For example.  In the attached 'keybindings' file I have attempted to remap 
print-message to '%' but the key 'p' still persists as being bound to 
print-message.  This is also true for create-alias.  I attempted to map 
create-alias to '@', but it also persists in being bound to  key 'a'.  In this 
map the key 'c' should be mapped to mail, but the key 'm' also persists in 
being bound to the mail function.  

Some functions should be renamed.  ie  capitalize-word should be called 
initalcap-word, or should be dropped from the configuration for simplicity and 
replaced with toggel-letter-case (like tilde does in vi[m]).

I suggest a simplistic approach to key mapping in which mutt uses no built-in 
maps but uses a default file which can be edited as needed and use other 
keyboard maps based only on hooks
>How-To-Repeat:
edit .muttrc to load this keymap.  start mmutt.  type <ESC>H to show keys.  
Note the duplicate print and alias commands.
>Fix:
Unknown
>Add-To-Audit-Trail:

>Unformatted:
 ----gnatsweb-attachment----
 Content-Type: application/octet-stream; name="keybindings"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="keybindings"
 
 YmluZCBhbGlhcyAgICAiLyIgICAgICAgc2VhcmNoCmJpbmQgYWxpYXMgICAgIj8iICAgICAgIHNl
 YXJjaC1yZXZlcnNlICAgCmJpbmQgYXR0YWNoICAgImIiICAgICAgIGJvdW5jZS1tZXNzYWdlICAg
 Cm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QgaW5kZXggICAgIkwiICAgICAgIGxpc3QtcmVwbHkKYmluZCBpbmRleCAgICAibSIgICAgICAg
 Y2hhbmdlLWZvbGRlciAgICAKYmluZCBpbmRleCAgICAiICIgICAgICAgbmV4dC1wYWdlCmJpbmQg
 aW5kZXggICAgIk4iICAgICAgIHRvZ2dsZS1uZXcKYmluZCBpbmRleCAgICAifCIgICAgICAgcGlw
 ZS1tZXNzYWdlICAgICAKYmluZCBpbmRleCAgICAiLSIgICAgICAgcHJldmlvdXMtcGFnZSAgICAK
 YmluZCBpbmRleCAgICAiJSIgICAgICAgcHJpbnQtbWVzc2FnZSAgICAKYmluZCBpbmRleCAgICAi
 XHIiICAgICAgZGlzcGxheS1tZXNzYWdlICAKYmluZCBpbmRleCAgICAiUiIgICAgICAgZ3JvdXAt
 cmVwbHkKYmluZCBpbmRleCAgICAiciIgICAgICAgcmVwbHkKYmluZCBpbmRleCAgICAiJCIgICAg
 ICAgc29ydC1tYWlsYm94ICAgICAKYmluZCBpbmRleCAgICAicyIgICAgICAgc2F2ZS1tZXNzYWdl
 ICAgICAKYmluZCBpbmRleCAgICAiOyIgICAgICAgdGFnLXBhdHRlcm4KYmluZCBpbmRleCAgICAi
 OiIgICAgICAgdGFnLXRocmVhZApiaW5kIGluZGV4ICAgICJUIiAgICAgICBjbGVhci1mbGFnCmJp
 bmQgaW5kZXggICAgInQiICAgICAgIHNldC1mbGFnCmJpbmQgaW5kZXggICAgInYiICAgICAgIHZp
 ZXctYXR0YWNobWVudHMgCmJpbmQgcGFnZXIgICAgImIiICAgICAgIGJvdW5jZS1tZXNzYWdlICAg
 CmJpbmQgcGFnZXIgICAgImMiICAgICAgIGNvcHktbWVzc2FnZSAgICAgCmJpbmQgcGFnZXIgICAg
 IlxjZiIgICAgIGZvcmdldC1wYXNzcGhyYXNlCmJpbmQgcGFnZXIgICAgIiwiICAgICAgIGNoYW5n
 ZS1mb2xkZXIgICAgCmJpbmQgcGFnZXIgICAgImMiICAgICAgIG1haWwK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