[PATCH] emacs: notmuch-hello: Make widget-keymap a parent of notmuch-hello-keymap
Nelson Elhage
nelhage at MIT.EDU
Fri May 14 10:15:38 PDT 2010
This lets us pick up later changes to widget-keymap if the user
customizes it in some way. This is the recommended way to use
`widget-keymap', according to its help.
---
This goes on top of Sebastian's patch. See
id:1273805175-6660-1-git-send-email-nelhage at ksplice.com, where I
submitted a similar, but less thorough, patch as his.
emacs/notmuch-hello.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 1042f31..5ec2aa4 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -215,7 +215,8 @@ diagonal."
(defvar notmuch-hello-mode-map
- (let ((map (copy-keymap widget-keymap)))
+ (let ((map (make-sparse-keymap)))
+ (set-keymap-parent map widget-keymap)
(define-key map "v" '(lambda () "Display the notmuch version" (interactive)
(message "notmuch version %s" (notmuch-version))))
(define-key map "?" 'notmuch-help)
--
1.6.6.30.g1e6fd
More information about the notmuch
mailing list