From 05a436f730cf6277c403b445bca9419ea89a7b2d Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sun, 8 Nov 2020 20:02:48 +0100 Subject: [PATCH] emacs: don't fset keymaps These keymaps are never invoked as commands so the function definitions serve no purpose. --- emacs/notmuch-show.el | 1 - emacs/notmuch-tree.el | 1 - emacs/notmuch.el | 1 - 3 files changed, 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index b08ceb97..ec22fd94 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1485,7 +1485,6 @@ reset based on the original query." (define-key map "B" 'notmuch-show-browse-urls) map) "Keymap for \"notmuch show\" buffers.") -(fset 'notmuch-show-mode-map notmuch-show-mode-map) (define-derived-mode notmuch-show-mode fundamental-mode "notmuch-show" "Major mode for viewing a thread with notmuch. diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index ea6a5cf3..ad08f7c6 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -361,7 +361,6 @@ FUNC." (define-key map "e" 'notmuch-tree-resume-message) map) "Keymap for \"notmuch tree\" buffers.") -(fset 'notmuch-tree-mode-map notmuch-tree-mode-map) (defun notmuch-tree-get-message-properties () "Return the properties of the current message as a plist. diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 83bcee57..165aaa43 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -194,7 +194,6 @@ there will be called at other points of notmuch execution." (define-key map "U" 'notmuch-unthreaded-from-search-current-query) map) "Keymap for \"notmuch search\" buffers.") -(fset 'notmuch-search-mode-map notmuch-search-mode-map) (defvar notmuch-search-stash-map (let ((map (make-sparse-keymap))) -- 2.43.0