[PATCH v2 3/9] emacs: Bind "s" to notmuch-search in hello-mode
authorAustin Clements <amdragon@MIT.EDU>
Tue, 3 Sep 2013 21:45:19 +0000 (17:45 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:53 +0000 (09:56 -0800)
fc/7e96bcd65faa2e2a9c29a229b146c1ceb52196 [new file with mode: 0644]

diff --git a/fc/7e96bcd65faa2e2a9c29a229b146c1ceb52196 b/fc/7e96bcd65faa2e2a9c29a229b146c1ceb52196
new file mode 100644 (file)
index 0000000..3f757e5
--- /dev/null
@@ -0,0 +1,102 @@
+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 20DF7431FDA\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 14:46:05 -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 v+vPPLhyroBg for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Sep 2013 14:45:59 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu\r
+       [18.7.68.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2EBE0431FD6\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 14:45:42 -0700 (PDT)\r
+X-AuditID: 12074422-b7ef78e000000935-22-522658852424\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+       by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 2E.AC.02357.58856225; Tue,  3 Sep 2013 17:45:41 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r83LjUwH023527; \r
+       Tue, 3 Sep 2013 17:45:31 -0400\r
+Received: from drake.dyndns.org (26-4-182.dynamic.csail.mit.edu [18.26.4.182])\r
+       (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 r83LjRlW026858\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Tue, 3 Sep 2013 17:45:28 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1VGyPe-0004xv-TY; Tue, 03 Sep 2013 17:45:26 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 3/9] emacs: Bind "s" to notmuch-search in hello-mode\r
+Date: Tue,  3 Sep 2013 17:45:19 -0400\r
+Message-Id: <1378244725-18846-4-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <1378244725-18846-1-git-send-email-amdragon@mit.edu>\r
+References: <1378244725-18846-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsUixCmqrdsaoRZkMPuEqUXTdGeL1XN5LK7f\r
+       nMnswOyxc9Zddo9b91+zezxbdYs5gDmKyyYlNSezLLVI3y6BK6PtawNzwT+Oilcv5jI2MK5l\r
+       72Lk5JAQMJFY2T2ZGcIWk7hwbz1bFyMXh5DAPkaJNR9PMUI4GxglDrXvZoVwDjNJLPp3khnC\r
+       mcso8XjSc7B+NgENiW37lzOC2CIC0hI7785mBbGZBaIljlyewQZiCwu4S/xtXQxmswioSvxr\r
+       mABm8wo4SBy+/QvqDkWJ7mcQcU4BR4neBYvAbhUCqmlaeZl9AiP/AkaGVYyyKblVurmJmTnF\r
+       qcm6xcmJeXmpRbqmermZJXqpKaWbGEHBxe6itIPx50GlQ4wCHIxKPLwMj1SDhFgTy4orcw8x\r
+       SnIwKYnyHglVCxLiS8pPqcxILM6ILyrNSS0+xCjBwawkwpvgA5TjTUmsrEotyodJSXOwKInz\r
+       Pnt6NlBIID2xJDU7NbUgtQgmK8PBoSTBWx4O1ChYlJqeWpGWmVOCkGbi4AQZzgM0/GcYyPDi\r
+       gsTc4sx0iPwpRkUpcd75IM0CIImM0jy4Xlj0v2IUB3pFmLcHpIoHmDjgul8BDWYCGpz2WRVk\r
+       cEkiQkqqgdFdoXn6ped8SWkBVukr4/JSxWefDtv11vqvrNjnM9kVIufmZGx0eTBtxSSe14Vv\r
+       xJYdaUi7c2RV9+UdVi2RcW3zfxofy5kmcj7YmEVNNcMwKbcx2zQx91Of+tRo3cLWecfuSLzj\r
+       dbzNncS569zmkF2O4r23Pf5MKPzY9OeMYEy5hNnrxTYn/yixFGckGmoxFxUnAgD0b7ZP2QIA        AA==\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: Tue, 03 Sep 2013 21:46:05 -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 24ac1c6..94cc4b5 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -263,7 +263,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
+@@ -533,7 +532,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