Re: [PATCH] lib: reword comment about XFOLDER: prefix
[notmuch-archives.git] / 6d / 27e87f8369bda5e7aed96ab6d3056ad268aacd
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 9C80D41ED72\r
6         for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 17:45:37 -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 uMI7CvK4qCiA for <notmuch@notmuchmail.org>;\r
16         Thu, 12 Jul 2012 17:45:36 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
18         [18.7.68.36])\r
19         by olra.theworths.org (Postfix) with ESMTP id E4ED541ED74\r
20         for <notmuch@notmuchmail.org>; Thu, 12 Jul 2012 17:45:30 -0700 (PDT)\r
21 X-AuditID: 12074424-b7f2a6d0000008bf-c5-4fff6faa8835\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id FD.38.02239.AAF6FFF4; Thu, 12 Jul 2012 20:45:30 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q6D0jUsc021129; \r
27         Thu, 12 Jul 2012 20:45:30 -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 q6D0jST0010705\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Thu, 12 Jul 2012 20:45:29 -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 1SpU0e-0005SC-Mf; Thu, 12 Jul 2012 20:45:28 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 6/7] emacs: Allow custom tags formatting\r
41 Date: Thu, 12 Jul 2012 20:45:18 -0400\r
42 Message-Id: <1342140319-19859-7-git-send-email-amdragon@mit.edu>\r
43 X-Mailer: git-send-email 1.7.10\r
44 In-Reply-To: <1342140319-19859-1-git-send-email-amdragon@mit.edu>\r
45 References: <1342140319-19859-1-git-send-email-amdragon@mit.edu>\r
46 X-Brightmail-Tracker:\r
47  H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUixG6nrrsq/7+/wbIVQhbXb85kdmD0eLbq\r
48         FnMAYxSXTUpqTmZZapG+XQJXRvPeLtaCY9wVWzfNZ2tgXMvZxcjBISFgIvF1vWIXIyeQKSZx\r
49         4d56NhBbSGAfo8SJaeVdjFxA9gZGiXtXv7BDOI+YJFZN6YZy5jJKfGr6xArSwiagIbFt/3JG\r
50         EFtEQFpi593ZrCAbmAXUJP50qYCEhQUsJKY272cCsVkEVCWONV1jAbF5BRwkpqx9ywpxhbzE\r
51         0/t9YFdwCjhKbPhygRXiIgeJxmMzmScw8i9gZFjFKJuSW6Wbm5iZU5yarFucnJiXl1qka66X\r
52         m1mil5pSuokRHDIuKjsYmw8pHWIU4GBU4uH9FfvfX4g1say4MvcQoyQHk5Ior0s2UIgvKT+l\r
53         MiOxOCO+qDQntfgQowQHs5II7zp7oBxvSmJlVWpRPkxKmoNFSZz3espNfyGB9MSS1OzU1ILU\r
54         IpisDAeHkgTvuTygRsGi1PTUirTMnBKENBMHJ8hwHqDh20BqeIsLEnOLM9Mh8qcYFaXEeVtA\r
55         EgIgiYzSPLheWEy/YhQHekWYdydIFQ8wHcB1vwIazAQ0eNbPfyCDSxIRUlINjEY1Pz4vWX/r\r
56         +0rT3ivBjoYC17nPpAqeqvh9yWZpf/vExfteyUZelGOaGCiqEBK397p6zvrDB9x2bPb4pPSi\r
57         tlPX8iPHiejv7z9aRSksvKb0Ns+xwkaH5VScpGJrnFXctmmTE47v1M7/17lRaf0mbak3zl8+\r
58         uG7U2s5pqsB+7kW6L/f5jTEVSUosxRmJhlrMRcWJAMuajcDEAgAA\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Fri, 13 Jul 2012 00:45:37 -0000\r
72 \r
73 Previously we ignored any notmuch-search-result-format customizations\r
74 for tag formatting because we needed to be able to parse back in the\r
75 result line and update the tags in place.  We no longer do either of\r
76 these things, so we can allow customization of this format.\r
77 \r
78 (Coincidentally, previously we still allowed too much customization of\r
79 the tags format, since moving it earlier on the line or removing it\r
80 from the line would interfere with the tagging mechanism.  There is\r
81 now no problem with doing such things.)\r
82 ---\r
83  emacs/notmuch.el |    8 +++-----\r
84  1 file changed, 3 insertions(+), 5 deletions(-)\r
85 \r
86 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
87 index a5cf0dc..f32cfb0 100644\r
88 --- a/emacs/notmuch.el\r
89 +++ b/emacs/notmuch.el\r
90 @@ -755,11 +755,9 @@ non-authors is found, assume that all of the authors match."\r
91      (notmuch-search-insert-authors format-string (plist-get result :authors)))\r
92  \r
93     ((string-equal field "tags")\r
94 -    ;; Ignore format-string here because notmuch-search-set-tags\r
95 -    ;; depends on the format of this\r
96 -    (insert (concat "(" (propertize\r
97 -                        (mapconcat 'identity (plist-get result :tags) " ")\r
98 -                        'font-lock-face 'notmuch-tag-face) ")")))))\r
99 +    (let ((tags-str (mapconcat 'identity (plist-get result :tags) " ")))\r
100 +      (insert (propertize (format format-string tags-str)\r
101 +                         'face 'notmuch-tag-face))))))\r
102  \r
103  (defun notmuch-search-show-result (result &optional pos)\r
104    ;; Ignore excluded matches\r
105 -- \r
106 1.7.10\r
107 \r