]> git.notmuchmail.org Git - notmuch/commit
emacs: help: check for nil key binding
authorMark Walters <markwalters1009@gmail.com>
Tue, 12 Nov 2013 20:10:53 +0000 (20:10 +0000)
committerDavid Bremner <david@tethera.net>
Thu, 14 Nov 2013 01:33:05 +0000 (21:33 -0400)
commita5ecdf390e4dca6a314cee1594ab3236ea62ca85
tree978b7fedb290f5d93a791e9f25ebd8f5baf8c03e
parent9ecfc1c42664f7ffe68fc5f13d7011c40becaab0
emacs: help: check for nil key binding

A standard way to unset a key binding is local-unset-key which is equivalent to
  (define-key (current-local-map) key nil)

Currently notmuch-help gives an error and fails if a user has done this.

To fix this we only add a help line if the binding is non-nil.
emacs/notmuch-lib.el