Re: [PATCH] lib: reword comment about XFOLDER: prefix
[notmuch-archives.git] / 92 / c1d5f6f85716195a0e8ac038c8a38f6ef9ea12
1 Return-Path: <amdragon@mit.edu>\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 AD20E431FC3\r
6         for <notmuch@notmuchmail.org>; Sat, 21 Jul 2012 10:37:24 -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 84ilyN6GYoTu for <notmuch@notmuchmail.org>;\r
16         Sat, 21 Jul 2012 10:37:23 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
18         [18.7.68.37])\r
19         by olra.theworths.org (Postfix) with ESMTP id 487C2431FC7\r
20         for <notmuch@notmuchmail.org>; Sat, 21 Jul 2012 10:37:20 -0700 (PDT)\r
21 X-AuditID: 12074425-b7f9b6d0000008c4-d6-500ae8ce8ee7\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
23         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id C0.FE.02244.EC8EA005; Sat, 21 Jul 2012 13:37:18 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q6LHbHIU029420; \r
27         Sat, 21 Jul 2012 13:37:17 -0400\r
28 Received: from drake.dyndns.org\r
29         (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
30         [209.6.116.242]) (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q6LHbF5o008018\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Sat, 21 Jul 2012 13:37:16 -0400 (EDT)\r
35 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
36         (envelope-from <amdragon@mit.edu>)\r
37         id 1SsdcB-0001Zr-Eg; Sat, 21 Jul 2012 13:37:15 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH v4 6/8] emacs: Allow custom tags formatting\r
41 Date: Sat, 21 Jul 2012 13:37:10 -0400\r
42 Message-Id: <1342892232-5659-7-git-send-email-amdragon@mit.edu>\r
43 X-Mailer: git-send-email 1.7.10\r
44 In-Reply-To: <1342892232-5659-1-git-send-email-amdragon@mit.edu>\r
45 References: <1341354059-29396-1-git-send-email-amdragon@mit.edu>\r
46         <1342892232-5659-1-git-send-email-amdragon@mit.edu>\r
47 X-Brightmail-Tracker:\r
48  H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsUixCmqrHvuBVeAwdrXkhZ79nlZrJ7LY3H9\r
49         5kxmB2aPu6e5PHbOusvu8WzVLeYA5igum5TUnMyy1CJ9uwSujI5Hs5kKXnNXHGnpYm5gPMHZ\r
50         xcjJISFgIvHqwAZmCFtM4sK99WxdjFwcQgL7GCW+ffvECOFsYJQ48/4zC0iVkMAjJom1zfkQ\r
51         ibmMEgePPWUFSbAJaEhs27+cEcQWEZCW2Hl3NlicWSBN4nv7W7C4sIC1xN+5d8HiLAKqEvtn\r
52         H2IDsXkF7CX2bGhihThDXuLp/T6wOKeAg8SjswegFpdJLO44zDiBkX8BI8MqRtmU3Crd3MTM\r
53         nOLUZN3i5MS8vNQiXQu93MwSvdSU0k2MoMBid1HdwTjhkNIhRgEORiUeXgslrgAh1sSy4src\r
54         Q4ySHExKorx994FCfEn5KZUZicUZ8UWlOanFhxglOJiVRHg3nQbK8aYkVlalFuXDpKQ5WJTE\r
55         eW+k3PQXEkhPLEnNTk0tSC2CycpwcChJ8PIBI0hIsCg1PbUiLTOnBCHNxMEJMpwHaLgYSA1v\r
56         cUFibnFmOkT+FKOilDjvv+dACQGQREZpHlwvLPJfMYoDvSLMawDSzgNMGnDdr4AGMwENls4C\r
57         G1ySiJCSamAsYQ9vlchgeLpdZO08vh3Lfk2vNWJMsFNIcRTf6JfQmJTXUnAmQKOhOmhD1XrL\r
58         S/uz5taq+xxZbMkysWzFx5jnnrtXhnLP+tLr3H17Sey0aBXWM8qO12P8Uy42/CzKb1QQ+sG2\r
59         Jpsr03TP7k2Ju3XkIo9JiAgsaJwflfLhqoL8JVeufkE+fiWW4oxEQy3mouJEAMyYE0fXAgAA\r
60 X-BeenThere: notmuch@notmuchmail.org\r
61 X-Mailman-Version: 2.1.13\r
62 Precedence: list\r
63 List-Id: "Use and development of the notmuch mail system."\r
64         <notmuch.notmuchmail.org>\r
65 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
67 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
68 List-Post: <mailto:notmuch@notmuchmail.org>\r
69 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
70 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
72 X-List-Received-Date: Sat, 21 Jul 2012 17:37:25 -0000\r
73 \r
74 Previously we ignored any notmuch-search-result-format customizations\r
75 for tag formatting because we needed to be able to parse back in the\r
76 result line and update the tags in place.  We no longer do either of\r
77 these things, so we can allow customization of this format.\r
78 \r
79 (Coincidentally, previously we still allowed too much customization of\r
80 the tags format, since moving it earlier on the line or removing it\r
81 from the line would interfere with the tagging mechanism.  There is\r
82 now no problem with doing such things.)\r
83 ---\r
84  emacs/notmuch.el |    8 +++-----\r
85  1 file changed, 3 insertions(+), 5 deletions(-)\r
86 \r
87 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
88 index 7180b9d..d092528 100644\r
89 --- a/emacs/notmuch.el\r
90 +++ b/emacs/notmuch.el\r
91 @@ -775,11 +775,9 @@ non-authors is found, assume that all of the authors match."\r
92      (notmuch-search-insert-authors format-string (plist-get result :authors)))\r
93  \r
94     ((string-equal field "tags")\r
95 -    ;; Ignore format-string here because notmuch-search-set-tags\r
96 -    ;; depends on the format of this\r
97 -    (insert (concat "(" (propertize\r
98 -                        (mapconcat 'identity (plist-get result :tags) " ")\r
99 -                        'font-lock-face 'notmuch-tag-face) ")")))))\r
100 +    (let ((tags-str (mapconcat 'identity (plist-get result :tags) " ")))\r
101 +      (insert (propertize (format format-string tags-str)\r
102 +                         'face 'notmuch-tag-face))))))\r
103  \r
104  (defun notmuch-search-show-result (result &optional pos)\r
105    "Insert RESULT at POS or the end of the buffer if POS is null."\r
106 -- \r
107 1.7.10\r
108 \r