Re: [PATCH 3/5] emacs: Use async process helper for search
[notmuch-archives.git] / cf / 3972c52c9dafafaf84820a575e7bb4901079f6
1 Return-Path: <pieter@praet.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id F3A69429E30\r
6         for <notmuch@notmuchmail.org>; Sun,  3 Jul 2011 23:52:43 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id BElHll0w3QyV for <notmuch@notmuchmail.org>;\r
16         Sun,  3 Jul 2011 23:52:43 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id AF115429E2D\r
21         for <notmuch@notmuchmail.org>; Sun,  3 Jul 2011 23:52:42 -0700 (PDT)\r
22 Received: by mail-wy0-f181.google.com with SMTP id 22so3733696wyh.26\r
23         for <notmuch@notmuchmail.org>; Sun, 03 Jul 2011 23:52:42 -0700 (PDT)\r
24 Received: by 10.216.229.93 with SMTP id g71mr3175993weq.70.1309762362333;\r
25         Sun, 03 Jul 2011 23:52:42 -0700 (PDT)\r
26 Received: from localhost ([109.131.160.67])\r
27         by mx.google.com with ESMTPS id t79sm2865148weq.29.2011.07.03.23.52.40\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Sun, 03 Jul 2011 23:52:41 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Austin Clements <amdragon@mit.edu>\r
32 Subject: [PATCH 2/5] emacs: add some functions to fetch the matched-msgids of\r
33         a (region of) search result(s)\r
34 Date: Mon,  4 Jul 2011 08:51:55 +0200\r
35 Message-Id: <1309762318-4530-3-git-send-email-pieter@praet.org>\r
36 X-Mailer: git-send-email 1.7.5.4\r
37 In-Reply-To: <1309762318-4530-1-git-send-email-pieter@praet.org>\r
38 References: <20110703171743.GL15901@mit.edu>\r
39         <1309762318-4530-1-git-send-email-pieter@praet.org>\r
40 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 04 Jul 2011 06:52:44 -0000\r
54 \r
55 Signed-off-by: Pieter Praet <pieter@praet.org>\r
56 ---\r
57  emacs/notmuch.el |    8 ++++++++\r
58  1 files changed, 8 insertions(+), 0 deletions(-)\r
59 \r
60 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
61 index 674deb7..2338044 100644\r
62 --- a/emacs/notmuch.el\r
63 +++ b/emacs/notmuch.el\r
64 @@ -402,6 +402,14 @@ Complete list of currently available key bindings:\r
65    "Return a list of threads for the current region"\r
66    (notmuch-search-properties-in-region 'notmuch-search-thread-id beg end))\r
67  \r
68 +(defun notmuch-search-find-matched-msgids ()\r
69 +  "Return the matched Message-Id's for the current thread"\r
70 +  (get-text-property (point) 'notmuch-search-matched-msgids))\r
71 +\r
72 +(defun notmuch-search-find-matched-msgids-region (beg end)\r
73 +  "Return a list of matched Message-Id's for the current region"\r
74 +  (notmuch-search-properties-in-region 'notmuch-search-matched-msgids beg end))\r
75 +\r
76  (defun notmuch-search-find-authors ()\r
77    "Return the authors for the current thread"\r
78    (get-text-property (point) 'notmuch-search-authors))\r
79 -- \r
80 1.7.5.4\r
81 \r