Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 96 / aa5f636c87d988ee9df39452bbe27a58b394a8
1 Return-Path: <markwalters1009@gmail.com>\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 7EE32431FD6\r
6         for <notmuch@notmuchmail.org>; Sat,  7 Apr 2012 09:11:08 -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.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 7vbtHHLSfphC for <notmuch@notmuchmail.org>;\r
18         Sat,  7 Apr 2012 09:11:07 -0700 (PDT)\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
20  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  3CDE3431E62    for <notmuch@notmuchmail.org>; Sat,  7 Apr 2012 09:11:06 -0700\r
23  (PDT)\r
24 Received: by mail-wg0-f45.google.com with SMTP id dt14so822285wgb.2\r
25         for <notmuch@notmuchmail.org>; Sat, 07 Apr 2012 09:11:05 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=6AWDtpv50jmIDDNcYOwlTA9e7zH4EvWg3JLHKf43KCI=;\r
29         b=Eu41iKn1e73ft0dy1L3xSVCj8GZkYLxtPvdmEuXueip/73kTWmmpwofi4JlCYZYVjv\r
30         9hTpDzfNw/io4l7zvY+rdgoLjPDYC2XT2utXv7PsE40kkzkX9WLIz227gyxPmcVbYNW3\r
31         jeelXnb42SAYXaxwhd96IhOLjirVHcG8S0mqSnfEJEWRq/59tCXvbPoxUKtnMAdyS3cp\r
32         KuHrsuiG0ygQsX/Rn8vuAVFwPuq06/6/RGyWA8LBzMthOU6i+mHyAxbxaHBXFW1sTCQx\r
33         ZUzh5x/3OEXK1HiZpROEdBArtNuX9LXUeNDBezAaLL3qP26gpT7NxLgj/6bvTdQFghUa\r
34         9UwA==\r
35 Received: by 10.216.135.223 with SMTP id u73mr934631wei.117.1333815065801;\r
36         Sat, 07 Apr 2012 09:11:05 -0700 (PDT)\r
37 Received: from localhost (94.197.17.51.threembb.co.uk. [94.197.17.51])\r
38         by mx.google.com with ESMTPS id k6sm15637159wiy.7.2012.04.07.09.11.03\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sat, 07 Apr 2012 09:11:04 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH v4 6/6] emacs: make show set --exclude=false\r
44 Date: Sat,  7 Apr 2012 17:10:08 +0100\r
45 Message-Id: <1333815008-24668-7-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 In-Reply-To: <1333815008-24668-1-git-send-email-markwalters1009@gmail.com>\r
48 References: <1333815008-24668-1-git-send-email-markwalters1009@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Sat, 07 Apr 2012 16:11:09 -0000\r
62 \r
63 Show has to set --exclude=false to deal with cases where it is asked\r
64 to show a single excluded message. It uses JSON so it can easily pass\r
65 the exclude information to the user.\r
66 ---\r
67  emacs/notmuch-show.el |    6 ++++--\r
68  1 files changed, 4 insertions(+), 2 deletions(-)\r
69 \r
70 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
71 index 6d3fe62..30b26d1 100644\r
72 --- a/emacs/notmuch-show.el\r
73 +++ b/emacs/notmuch-show.el\r
74 @@ -1060,13 +1060,15 @@ function is used."\r
75                        (append (list "\'") basic-args\r
76                                (list "and (" notmuch-show-query-context ")\'"))\r
77                      (append (list "\'") basic-args (list "\'")))))\r
78 -       (notmuch-show-insert-forest (notmuch-query-get-threads args))\r
79 +       (notmuch-show-insert-forest (notmuch-query-get-threads\r
80 +                                    (cons "--exclude=false" args)))\r
81         ;; If the query context reduced the results to nothing, run\r
82         ;; the basic query.\r
83         (when (and (eq (buffer-size) 0)\r
84                    notmuch-show-query-context)\r
85           (notmuch-show-insert-forest\r
86 -          (notmuch-query-get-threads basic-args))))\r
87 +          (notmuch-query-get-threads\r
88 +           (cons "--exclude=false" basic-args)))))\r
89  \r
90        (jit-lock-register #'notmuch-show-buttonise-links)\r
91  \r
92 -- \r
93 1.7.9.1\r
94 \r