mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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.
This commit is contained in:
parent
9ecfc1c426
commit
a5ecdf390e
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ prefix argument. PREFIX and TAIL are used internally."
|
|||
(setq tail
|
||||
(notmuch-describe-keymap
|
||||
binding ua-keys (notmuch-prefix-key-description key) tail)))
|
||||
(t
|
||||
(binding
|
||||
(when (and ua-keys (symbolp binding)
|
||||
(get binding 'notmuch-prefix-doc))
|
||||
;; Documentation for prefixed command
|
||||
|
|
Loading…
Reference in a new issue