From: Austin Clements Date: Thu, 29 Aug 2013 16:25:51 +0000 (+2000) Subject: [PATCH 3/9] emacs: Bind "s" to notmuch-search in hello-mode X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4033b6726f6339d285e399660fdee7b377bfafaa;p=notmuch-archives.git [PATCH 3/9] emacs: Bind "s" to notmuch-search in hello-mode --- diff --git a/d9/71d3c40bd934793d962594690ec693410e21b9 b/d9/71d3c40bd934793d962594690ec693410e21b9 new file mode 100644 index 000000000..8e52e5197 --- /dev/null +++ b/d9/71d3c40bd934793d962594690ec693410e21b9 @@ -0,0 +1,103 @@ +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 8EA9E431FAE + for ; Thu, 29 Aug 2013 09:26:11 -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 ANuYZG9xARez for ; + Thu, 29 Aug 2013 09:26:05 -0700 (PDT) +Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu + [18.9.25.12]) + by olra.theworths.org (Postfix) with ESMTP id 53516431FBC + for ; Thu, 29 Aug 2013 09:26:05 -0700 (PDT) +X-AuditID: 1209190c-b7fac8e000006335-2e-521f761d0d6a +Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) + by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP + id 09.CE.25397.D167F125; Thu, 29 Aug 2013 12:26:05 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7TGQ39U018778; + 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 r7TGQ1bZ014993 + (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-0007Wn-09; Thu, 29 Aug 2013 12:26:01 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH 3/9] emacs: Bind "s" to notmuch-search in hello-mode +Date: Thu, 29 Aug 2013 12:25:51 -0400 +Message-Id: <1377793557-28878-4-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+NgFtrEIsWRmVeSWpSXmKPExsUixG6nritbJh9k0HqWxeL6zZnMDowez1bd + Yg5gjOKySUnNySxLLdK3S+DK+L9+C2PBP46KO4uOMTYwrmXvYuTkkBAwkTi94wSULSZx4d56 + ti5GLg4hgX2MEm1LW6CcjYwSV9f8ZoVw7jBJXPx5HMqZyyjxZ+s5RpB+NgENiW37l4PZIgLS + EjvvzgYq4uBgFlCT+NOlAmIKC7hIHJqhDlLBIqAqcXvdHrDNvAIOEgtb/zBBXKEo0f1sAhuI + zSngKNF/9y0LiC0EVPPn4lP2CYz8CxgZVjHKpuRW6eYmZuYUpybrFicn5uWlFuka6uVmluil + ppRuYgQFDackzw7GNweVDjEKcDAq8fB2BMoHCbEmlhVX5h5ilORgUhLlDSwBCvEl5adUZiQW + Z8QXleakFh9ilOBgVhLhfcsJlONNSaysSi3Kh0lJc7AoifM+fXo2UEggPbEkNTs1tSC1CCYr + w8GhJMEbXwrUKFiUmp5akZaZU4KQZuLgBBnOAzS8HKSGt7ggMbc4Mx0if4pRUUqcNw8kIQCS + yCjNg+uFRfUrRnGgV4R5JUGqeIAJAa77FdBgJqDBE/LlQAaXJCKkpBoYDVmyrq/XUD/OIloU + E9W5519p/b3c7D9eXFW348uPuu09X/Zzy9T1TNaZnxWbBJls/3iIvWPWETjU6CojGqX7h+e5 + j/fVaSz9DIIXU4t/PVl3KbFFaY+CzIrjxluqLA2y3A16j8VuvjLL/OmSPeKCCeKusmvuu7qo + XvqpdUXmiEPfG4ddXUFKLMUZiYZazEXFiQDBuow5xQIAAA== +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:11 -0000 + +Since there is now no difference between notmuch-hello-search and +notmuch-search when called interactively, bind "s" to notmuch-search +in notmuch-hello-mode-map. Now all modes bind "s" this way. +--- + emacs/notmuch-hello.el | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el +index c4f102f..c9d484c 100644 +--- a/emacs/notmuch-hello.el ++++ b/emacs/notmuch-hello.el +@@ -258,7 +258,6 @@ afterwards.") + search)) + + (defun notmuch-hello-search (&optional search) +- (interactive) + (unless (null search) + (setq search (notmuch-hello-trim search)) + (let ((history-delete-duplicates t)) +@@ -528,7 +527,7 @@ Such a list can be computed with `notmuch-hello-query-counts'." + (define-key map "G" 'notmuch-hello-poll-and-update) + (define-key map (kbd "") 'widget-backward) + (define-key map "m" 'notmuch-mua-new-mail) +- (define-key map "s" 'notmuch-hello-search) ++ (define-key map "s" 'notmuch-search) + map) + "Keymap for \"notmuch hello\" buffers.") + (fset 'notmuch-hello-mode-map notmuch-hello-mode-map) +-- +1.7.10.4 +