From: Mark Walters Date: Tue, 12 Nov 2013 20:10:55 +0000 (+0000) Subject: emacs: help: remove duplicate bindings X-Git-Tag: 0.17_rc1~39 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=9d0174b11c11ca227b5666e4ce80229220b9f9e2;hp=9d0174b11c11ca227b5666e4ce80229220b9f9e2;p=notmuch emacs: help: remove duplicate bindings 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" ---