database error
[notmuch-archives.git] / 8d / da52637c80913acd21d800d950250042349cee
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 49B21431FD7\r
6         for <notmuch@notmuchmail.org>; Sun, 11 May 2014 01:35:33 -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 vV69MtmwW9h9 for <notmuch@notmuchmail.org>;\r
18         Sun, 11 May 2014 01:35:28 -0700 (PDT)\r
19 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
20         [209.85.212.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 8F187431FD9\r
23         for <notmuch@notmuchmail.org>; Sun, 11 May 2014 01:35:00 -0700 (PDT)\r
24 Received: by mail-wi0-f169.google.com with SMTP id hi2so4221099wib.4\r
25         for <notmuch@notmuchmail.org>; Sun, 11 May 2014 01:34:59 -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:in-reply-to:references;\r
28         bh=UMqwpe4t+aF2yCjCNoplXTDz8InON8PL00jjhzxznLs=;\r
29         b=OOx1dLI8G9Vo5FrmFQVvWkNg87cSE5V4Anxsf6BJPqcTb0cIP+Fnm6jXnJy2UahxMC\r
30         wl1IXqitfF8xPfgcRUWIzWgD4ekjEmmjhspD9U6f3GaKSh46dj0TicijDVQ5QETP7GS6\r
31         K25HQb+xxy8VPrAYEk+9dSKOp/UOrWxmDKeCoAY0rzi0W0D/hFJSwc/wWYUK5evnyIz+\r
32         Wnhzp5YyDfEYs7TzFQwChQGQ09lMKTfojMTXtJM+4IbL+1eqzl/zbI79NiKaXUCo6pGZ\r
33         5Xk7PxSHh3ENsLcsaqNjcu9FODIi9znFaM99YksBmnMbn870Z1xezVxvdDy1jEyW3ZcN\r
34         L5YQ==\r
35 X-Received: by 10.180.74.132 with SMTP id t4mr10562366wiv.30.1399797299436;\r
36         Sun, 11 May 2014 01:34:59 -0700 (PDT)\r
37 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
38         by mx.google.com with ESMTPSA id j3sm12738664wjw.38.2014.05.11.01.34.58\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Sun, 11 May 2014 01:34:58 -0700 (PDT)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 7/7] emacs: hello: add option to omit count for a search\r
45 Date: Sun, 11 May 2014 09:34:42 +0100\r
46 Message-Id: <1399797282-20389-8-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.10.4\r
48 In-Reply-To: <1399797282-20389-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1399797282-20389-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Sun, 11 May 2014 08:35:33 -0000\r
63 \r
64 This omits the count for the specific search. This makes notmuch-hello\r
65 faster, particularly for large complex saved searches.\r
66 ---\r
67  emacs/notmuch-hello.el |    7 +++++++\r
68  1 file changed, 7 insertions(+)\r
69 \r
70 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
71 index 265b879..b3b539d 100644\r
72 --- a/emacs/notmuch-hello.el\r
73 +++ b/emacs/notmuch-hello.el\r
74 @@ -94,6 +94,8 @@ (define-widget 'notmuch-saved-search-plist 'list\r
75                             (const :format "" :display-function)\r
76                             (choice :tag  " Display function"\r
77                                     (const :tag "Default (messages)" nil)\r
78 +                                   (function-item :tag "omit count"\r
79 +                                                  notmuch-hello-display-omit-count)\r
80                                     (function-item :tag "messages/threads"\r
81                                                    notmuch-hello-display-count-threads-and-messages)\r
82                                     (function-item :tag "highlight newly arrived messages"\r
83 @@ -528,6 +530,11 @@ (defun notmuch-hello-display-new-messages (&rest args)\r
84      (plist-put current :count (notmuch-hello-nice-number (length new-list)))\r
85      (plist-put current :message-list new-list)))\r
86  \r
87 +(defun notmuch-hello-display-omit-count (&rest args)\r
88 +  "Omit the count."\r
89 +  (let* ((current (plist-get args :current)))\r
90 +    (plist-put current :count "---")))\r
91 +\r
92  (defun notmuch-hello-batch-message-count (elem-plist options)\r
93    "Update the message count for a saved search.\r
94  \r
95 -- \r
96 1.7.10.4\r
97 \r