]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: help: remove duplicate bindings
authorMark Walters <markwalters1009@gmail.com>
Tue, 12 Nov 2013 20:10:55 +0000 (20:10 +0000)
committerDavid Bremner <david@tethera.net>
Thu, 14 Nov 2013 01:33:28 +0000 (21:33 -0400)
If the user (or a mode) overrides a keybinding from the common keymap
in one of the modes then both help lines appear in the help screen
even though only one of them is applicable.

Fix this by checking if we already have that key binding. We do this
by constructing an list of (key . docstring) pairs so it is easy to
check if we have already had that binding. Then the actual print help
routine changes these pairs into strings "key \t docstring"


No differences found