From 9ccd978665103a209861b1ea7e1fb3776018bba9 Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Fri, 14 May 2010 13:15:38 -0400 Subject: [PATCH] emacs: notmuch-hello: Make widget-keymap a parent of notmuch-hello-keymap 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 02d8f0c4..aa270727 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -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) -- 2.43.0