]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: notmuch-hello: Make widget-keymap a parent of notmuch-hello-keymap
authorNelson Elhage <nelhage@MIT.EDU>
Fri, 14 May 2010 17:15:38 +0000 (13:15 -0400)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 01:17:03 +0000 (18:17 -0700)
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.

emacs/notmuch-hello.el

index 02d8f0c4e1ddddeb958a19fb8ba6579ed8f02493..aa270727b077f902993e23327e50e6c18ee40288 100644 (file)
@@ -262,7 +262,8 @@ should be. Returns a cons cell `(tags-per-line width)'."
 
 
 (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)