From: Austin Clements Date: Thu, 29 Aug 2013 16:25:57 +0000 (+2000) Subject: [PATCH 9/9] emacs: Move ?, q, s, m, =, and G to the common keymap X-Git-Url: http://git.tremily.us/?p=notmuch-archives.git;a=commitdiff_plain;h=b07c13ce906dcdfbff32d4320d4e0211b14cfc3e [PATCH 9/9] emacs: Move ?, q, s, m, =, and G to the common keymap --- diff --git a/61/95274a378fa4840d08b80cbbf94f2e5ba48063 b/61/95274a378fa4840d08b80cbbf94f2e5ba48063 new file mode 100644 index 000000000..40854532a --- /dev/null +++ b/61/95274a378fa4840d08b80cbbf94f2e5ba48063 @@ -0,0 +1,172 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 1B02E429E32 + for ; Thu, 29 Aug 2013 09:26:25 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 3vaJoy4zrgmA for ; + Thu, 29 Aug 2013 09:26:20 -0700 (PDT) +Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu + [18.9.25.13]) + by olra.theworths.org (Postfix) with ESMTP id 57653431FD0 + for ; Thu, 29 Aug 2013 09:26:08 -0700 (PDT) +X-AuditID: 1209190d-b7f078e000000937-d0-521f761e8feb +Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) + by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP + id A0.0B.02359.E167F125; Thu, 29 Aug 2013 12:26:06 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r7TGQ3k9015739; + Thu, 29 Aug 2013 12:26:04 -0400 +Received: from drake.dyndns.org + (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [216.15.114.40]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7TGQ1UW015006 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Thu, 29 Aug 2013 12:26:02 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1VF52n-0007X5-7G; Thu, 29 Aug 2013 12:26:01 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH 9/9] emacs: Move ?, q, s, m, =, and G to the common keymap +Date: Thu, 29 Aug 2013 12:25:57 -0400 +Message-Id: <1377793557-28878-10-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1377793557-28878-1-git-send-email-amdragon@mit.edu> +References: <1377793557-28878-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsUixCmqrStXJh9k0L1By+L6zZnMDowez1bd + Yg5gjOKySUnNySxLLdK3S+DKeHz5N0vBX+WKyTNOMzcw/pLtYuTkkBAwkTi79R87hC0mceHe + erYuRi4OIYF9jBLnzn9kh3A2MkocubGQFcK5wyRx7NN7KGcuo8TDOR+ZQPrZBDQktu1fzghi + iwhIS+y8OxuoiIODWUBN4k+XCkhYWMBL4tOZu2wgNouAqkTLsQNgNq+Ao8TR+a+YIc5QlOh+ + NgEszgkU77/7lgXEFhJwkPhz8Sn7BEb+BYwMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3SN9HIz + S/RSU0o3MYLDRpJ3B+O7g0qHGAU4GJV4eB8GywcJsSaWFVfmHmKU5GBSEuUNLAEK8SXlp1Rm + JBZnxBeV5qQWH2KU4GBWEuF9ywmU401JrKxKLcqHSUlzsCiJ8z59ejZQSCA9sSQ1OzW1ILUI + JivDwaEkwRtfCtQoWJSanlqRlplTgpBm4uAEGc4DNNwKpIa3uCAxtzgzHSJ/ilFRSpzXDCQh + AJLIKM2D64XF9StGcaBXhHnDQKp4gCkBrvsV0GAmoMET8uVABpckIqSkGhjjr+j80F4qMOW0 + xt1jK/VrLSMNN19askPd7uu9MGOrK2ekf/JeXC+Q9lGmRnnCfevn/V3/LmfedNZP7JmY8uef + 1R52k6dfPRn7jLZ5LWw8tuT0//YzIU5ieQti5GIns72+5px+ScRGfV5HTdaFCC9lBuHKnFe1 + OU6eRqW7F5/x/iHF8EmCXU6JpTgj0VCLuag4EQA6kiRexgIAAA== +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 29 Aug 2013 16:26:25 -0000 + +The only user-visible effect of this should be that "G" now works in +show mode (previously it was unbound for no apparent reason). +--- + emacs/notmuch-hello.el | 6 ------ + emacs/notmuch-lib.el | 6 ++++++ + emacs/notmuch-show.el | 5 ----- + emacs/notmuch.el | 6 ------ + 4 files changed, 6 insertions(+), 17 deletions(-) + +diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el +index 7a31d73..1d6c3a2 100644 +--- a/emacs/notmuch-hello.el ++++ b/emacs/notmuch-hello.el +@@ -520,13 +520,7 @@ Such a list can be computed with `notmuch-hello-query-counts'." + (set-keymap-parent map notmuch-common-keymap) + (define-key map "v" (lambda () "Display the notmuch version" (interactive) + (message "notmuch version %s" (notmuch-version)))) +- (define-key map "?" 'notmuch-help) +- (define-key map "q" 'notmuch-kill-this-buffer) +- (define-key map "=" 'notmuch-refresh-this-buffer) +- (define-key map "G" 'notmuch-poll-and-refresh-this-buffer) + (define-key map (kbd "") 'widget-backward) +- (define-key map "m" 'notmuch-mua-new-mail) +- (define-key map "s" 'notmuch-search) + map) + "Keymap for \"notmuch hello\" buffers.") + (fset 'notmuch-hello-mode-map notmuch-hello-mode-map) +diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el +index 2bf1d2f..58f3313 100644 +--- a/emacs/notmuch-lib.el ++++ b/emacs/notmuch-lib.el +@@ -130,6 +130,12 @@ For example, if you wanted to remove an \"inbox\" tag and add an + + (defvar notmuch-common-keymap + (let ((map (make-sparse-keymap))) ++ (define-key map "?" 'notmuch-help) ++ (define-key map "q" 'notmuch-kill-this-buffer) ++ (define-key map "s" 'notmuch-search) ++ (define-key map "m" 'notmuch-mua-new-mail) ++ (define-key map "=" 'notmuch-refresh-this-buffer) ++ (define-key map "G" 'notmuch-poll-and-refresh-this-buffer) + map) + "Keymap shared by all notmuch modes.") + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index 9f67340..9d8b785 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1265,14 +1265,10 @@ reset based on the original query." + (defvar notmuch-show-mode-map + (let ((map (make-sparse-keymap))) + (set-keymap-parent map notmuch-common-keymap) +- (define-key map "?" 'notmuch-help) +- (define-key map "q" 'notmuch-kill-this-buffer) + (define-key map (kbd "") 'widget-backward) + (define-key map (kbd "M-TAB") 'notmuch-show-previous-button) + (define-key map (kbd "") 'notmuch-show-previous-button) + (define-key map (kbd "TAB") 'notmuch-show-next-button) +- (define-key map "s" 'notmuch-search) +- (define-key map "m" 'notmuch-mua-new-mail) + (define-key map "f" 'notmuch-show-forward-message) + (define-key map "r" 'notmuch-show-reply-sender) + (define-key map "R" 'notmuch-show-reply) +@@ -1280,7 +1276,6 @@ reset based on the original query." + (define-key map "w" 'notmuch-show-save-attachments) + (define-key map "V" 'notmuch-show-view-raw-message) + (define-key map "c" 'notmuch-show-stash-map) +- (define-key map "=" 'notmuch-refresh-this-buffer) + (define-key map "h" 'notmuch-show-toggle-visibility-headers) + (define-key map "*" 'notmuch-show-tag-all) + (define-key map "-" 'notmuch-show-remove-tag) +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index e098bd7..4de6229 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -199,8 +199,6 @@ first line of documentation for the bound function." + (defvar notmuch-search-mode-map + (let ((map (make-sparse-keymap))) + (set-keymap-parent map notmuch-common-keymap) +- (define-key map "?" 'notmuch-help) +- (define-key map "q" 'notmuch-kill-this-buffer) + (define-key map "x" 'notmuch-kill-this-buffer) + (define-key map (kbd "") 'notmuch-search-scroll-down) + (define-key map "b" 'notmuch-search-scroll-down) +@@ -211,12 +209,8 @@ first line of documentation for the bound function." + (define-key map "n" 'notmuch-search-next-thread) + (define-key map "r" 'notmuch-search-reply-to-thread-sender) + (define-key map "R" 'notmuch-search-reply-to-thread) +- (define-key map "m" 'notmuch-mua-new-mail) +- (define-key map "s" 'notmuch-search) + (define-key map "o" 'notmuch-search-toggle-order) + (define-key map "c" 'notmuch-search-stash-map) +- (define-key map "=" 'notmuch-refresh-this-buffer) +- (define-key map "G" 'notmuch-poll-and-refresh-this-buffer) + (define-key map "t" 'notmuch-search-filter-by-tag) + (define-key map "f" 'notmuch-search-filter) + (define-key map [mouse-1] 'notmuch-search-show-thread) +-- +1.7.10.4 +