[PATCH v2 3/3] emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Wed, 18 Jan 2012 20:22:56 +0000 (00:22 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:38 +0000 (09:42 -0800)
16/e762be4a5cddbd84e65fcb914b70394328b88b [new file with mode: 0644]

diff --git a/16/e762be4a5cddbd84e65fcb914b70394328b88b b/16/e762be4a5cddbd84e65fcb914b70394328b88b
new file mode 100644 (file)
index 0000000..9a36974
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\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 741F7431FD4\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 12:24:07 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, 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 IgQs-Gzi+mMM for <notmuch@notmuchmail.org>;\r
+       Wed, 18 Jan 2012 12:24:05 -0800 (PST)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 83E61431FCB\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 12:24:04 -0800 (PST)\r
+Received: by mail-bk0-f53.google.com with SMTP id y12so2078178bkt.26\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 12:24:04 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=z0niI0g6yzC63arwaAOe7shFtwidZojIBw9dQ7sZyeM=;\r
+       b=CWDk4YT1fP8mAAlr/+6O41PvHQZLVB2587f7zRZY9VDXR/m7d6X490skqs5iEEpMII\r
+       wj0SdWuICybG4VaUglCBxuPrjc4PsBRqYjTbZpnzHHNLd85Cdv6dfrLqaWagLyfRFUug\r
+       vnZjFp5rufBilijQLcUYfss2/Q8Sf8WXKO0MQ=\r
+Received: by 10.204.152.7 with SMTP id e7mr6866766bkw.70.1326918244219;\r
+       Wed, 18 Jan 2012 12:24:04 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id t17sm6378849bke.6.2012.01.18.12.24.03\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 18 Jan 2012 12:24:03 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 3/3] emacs: bind "s" to `notmuch-hello-search' in\r
+       notmuch-hello buffer\r
+Date: Thu, 19 Jan 2012 00:22:56 +0400\r
+Message-Id: <1326918176-20352-4-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.8.3\r
+In-Reply-To: <1326918176-20352-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <1326918176-20352-1-git-send-email-dmitry.kurochkin@gmail.com>\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: Wed, 18 Jan 2012 20:24:08 -0000\r
+\r
+`notmuch-hello-search' uses `notmuch-search' function but refreshes\r
+notmuch-hello buffer when the search buffer is closed.\r
+---\r
+ emacs/notmuch-hello.el |    5 +++--\r
+ 1 files changed, 3 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index cb36977..e908659 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -163,7 +163,8 @@ International Bureau of Weights and Measures."\r
+             (format "%s%03d" notmuch-hello-thousands-separator elem))\r
+            (cdr result)))))\r
\r
+-(defun notmuch-hello-search (search)\r
++(defun notmuch-hello-search (&optional search)\r
++  (interactive)\r
+   (notmuch-search search notmuch-search-oldest-first nil nil\r
+                 #'notmuch-hello-search-continuation))\r
\r
+@@ -330,7 +331,7 @@ should be. Returns a cons cell `(tags-per-line width)'."\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-search)\r
++    (define-key map "s" 'notmuch-hello-search)\r
+     map)\r
+   "Keymap for \"notmuch hello\" buffers.")\r
+ (fset 'notmuch-hello-mode-map notmuch-hello-mode-map)\r
+-- \r
+1.7.8.3\r
+\r