[PATCH 3/9] emacs: Bind "s" to notmuch-search in hello-mode
authorAustin Clements <amdragon@MIT.EDU>
Thu, 29 Aug 2013 16:25:51 +0000 (12:25 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:45 +0000 (09:56 -0800)
d9/71d3c40bd934793d962594690ec693410e21b9 [new file with mode: 0644]

diff --git a/d9/71d3c40bd934793d962594690ec693410e21b9 b/d9/71d3c40bd934793d962594690ec693410e21b9
new file mode 100644 (file)
index 0000000..8e52e51
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8EA9E431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 29 Aug 2013 09:26:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ANuYZG9xARez for <notmuch@notmuchmail.org>;\r
+       Thu, 29 Aug 2013 09:26:05 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu\r
+       [18.9.25.12])\r
+       by olra.theworths.org (Postfix) with ESMTP id 53516431FBC\r
+       for <notmuch@notmuchmail.org>; Thu, 29 Aug 2013 09:26:05 -0700 (PDT)\r
+X-AuditID: 1209190c-b7fac8e000006335-2e-521f761d0d6a\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 09.CE.25397.D167F125; Thu, 29 Aug 2013 12:26:05 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7TGQ39U018778; \r
+       Thu, 29 Aug 2013 12:26:04 -0400\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7TGQ1bZ014993\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Thu, 29 Aug 2013 12:26:02 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1VF52n-0007Wn-09; Thu, 29 Aug 2013 12:26:01 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/9] emacs: Bind "s" to notmuch-search in hello-mode\r
+Date: Thu, 29 Aug 2013 12:25:51 -0400\r
+Message-Id: <1377793557-28878-4-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <1377793557-28878-1-git-send-email-amdragon@mit.edu>\r
+References: <1377793557-28878-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nritbJh9k0HqWxeL6zZnMDowez1bd\r
+       Yg5gjOKySUnNySxLLdK3S+DK+L9+C2PBP46KO4uOMTYwrmXvYuTkkBAwkTi94wSULSZx4d56\r
+       ti5GLg4hgX2MEm1LW6CcjYwSV9f8ZoVw7jBJXPx5HMqZyyjxZ+s5RpB+NgENiW37l4PZIgLS\r
+       EjvvzgYq4uBgFlCT+NOlAmIKC7hIHJqhDlLBIqAqcXvdHrDNvAIOEgtb/zBBXKEo0f1sAhuI\r
+       zSngKNF/9y0LiC0EVPPn4lP2CYz8CxgZVjHKpuRW6eYmZuYUpybrFicn5uWlFuka6uVmluil\r
+       ppRuYgQFDackzw7GNweVDjEKcDAq8fB2BMoHCbEmlhVX5h5ilORgUhLlDSwBCvEl5adUZiQW\r
+       Z8QXleakFh9ilOBgVhLhfcsJlONNSaysSi3Kh0lJc7AoifM+fXo2UEggPbEkNTs1tSC1CCYr\r
+       w8GhJMEbXwrUKFiUmp5akZaZU4KQZuLgBBnOAzS8HKSGt7ggMbc4Mx0if4pRUUqcNw8kIQCS\r
+       yCjNg+uFRfUrRnGgV4R5JUGqeIAJAa77FdBgJqDBE/LlQAaXJCKkpBoYDVmyrq/XUD/OIloU\r
+       E9W5519p/b3c7D9eXFW348uPuu09X/Zzy9T1TNaZnxWbBJls/3iIvWPWETjU6CojGqX7h+e5\r
+       j/fVaSz9DIIXU4t/PVl3KbFFaY+CzIrjxluqLA2y3A16j8VuvjLL/OmSPeKCCeKusmvuu7qo\r
+       XvqpdUXmiEPfG4ddXUFKLMUZiYZazEXFiQDBuow5xQIAAA==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 29 Aug 2013 16:26:11 -0000\r
+\r
+Since there is now no difference between notmuch-hello-search and\r
+notmuch-search when called interactively, bind "s" to notmuch-search\r
+in notmuch-hello-mode-map.  Now all modes bind "s" this way.\r
+---\r
+ emacs/notmuch-hello.el |    3 +--\r
+ 1 file changed, 1 insertion(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index c4f102f..c9d484c 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -258,7 +258,6 @@ afterwards.")\r
+     search))\r
\r
+ (defun notmuch-hello-search (&optional search)\r
+-  (interactive)\r
+   (unless (null search)\r
+     (setq search (notmuch-hello-trim search))\r
+     (let ((history-delete-duplicates t))\r
+@@ -528,7 +527,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."\r
+     (define-key map "G" 'notmuch-hello-poll-and-update)\r
+     (define-key map (kbd "<C-tab>") 'widget-backward)\r
+     (define-key map "m" 'notmuch-mua-new-mail)\r
+-    (define-key map "s" 'notmuch-hello-search)\r
++    (define-key map "s" 'notmuch-search)\r
+     map)\r
+   "Keymap for \"notmuch hello\" buffers.")\r
+ (fset 'notmuch-hello-mode-map notmuch-hello-mode-map)\r
+-- \r
+1.7.10.4\r
+\r