--- /dev/null
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id AD20E431FC3\r
+ for <notmuch@notmuchmail.org>; Sat, 21 Jul 2012 10:37:24 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 84ilyN6GYoTu for <notmuch@notmuchmail.org>;\r
+ Sat, 21 Jul 2012 10:37:23 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
+ [18.7.68.37])\r
+ by olra.theworths.org (Postfix) with ESMTP id 487C2431FC7\r
+ for <notmuch@notmuchmail.org>; Sat, 21 Jul 2012 10:37:20 -0700 (PDT)\r
+X-AuditID: 12074425-b7f9b6d0000008c4-d6-500ae8ce8ee7\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+ by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id C0.FE.02244.EC8EA005; Sat, 21 Jul 2012 13:37:18 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+ by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q6LHbHIU029420; \r
+ Sat, 21 Jul 2012 13:37:17 -0400\r
+Received: from drake.dyndns.org\r
+ (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+ [209.6.116.242]) (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q6LHbF5o008018\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Sat, 21 Jul 2012 13:37:16 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1SsdcB-0001Zr-Eg; Sat, 21 Jul 2012 13:37:15 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v4 6/8] emacs: Allow custom tags formatting\r
+Date: Sat, 21 Jul 2012 13:37:10 -0400\r
+Message-Id: <1342892232-5659-7-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+In-Reply-To: <1342892232-5659-1-git-send-email-amdragon@mit.edu>\r
+References: <1341354059-29396-1-git-send-email-amdragon@mit.edu>\r
+ <1342892232-5659-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsUixCmqrHvuBVeAwdrXkhZ79nlZrJ7LY3H9\r
+ 5kxmB2aPu6e5PHbOusvu8WzVLeYA5igum5TUnMyy1CJ9uwSujI5Hs5kKXnNXHGnpYm5gPMHZ\r
+ xcjJISFgIvHqwAZmCFtM4sK99WxdjFwcQgL7GCW+ffvECOFsYJQ48/4zC0iVkMAjJom1zfkQ\r
+ ibmMEgePPWUFSbAJaEhs27+cEcQWEZCW2Hl3NlicWSBN4nv7W7C4sIC1xN+5d8HiLAKqEvtn\r
+ H2IDsXkF7CX2bGhihThDXuLp/T6wOKeAg8SjswegFpdJLO44zDiBkX8BI8MqRtmU3Crd3MTM\r
+ nOLUZN3i5MS8vNQiXQu93MwSvdSU0k2MoMBid1HdwTjhkNIhRgEORiUeXgslrgAh1sSy4src\r
+ Q4ySHExKorx994FCfEn5KZUZicUZ8UWlOanFhxglOJiVRHg3nQbK8aYkVlalFuXDpKQ5WJTE\r
+ eW+k3PQXEkhPLEnNTk0tSC2CycpwcChJ8PIBI0hIsCg1PbUiLTOnBCHNxMEJMpwHaLgYSA1v\r
+ cUFibnFmOkT+FKOilDjvv+dACQGQREZpHlwvLPJfMYoDvSLMawDSzgNMGnDdr4AGMwENls4C\r
+ G1ySiJCSamAsYQ9vlchgeLpdZO08vh3Lfk2vNWJMsFNIcRTf6JfQmJTXUnAmQKOhOmhD1XrL\r
+ S/uz5taq+xxZbMkysWzFx5jnnrtXhnLP+tLr3H17Sey0aBXWM8qO12P8Uy42/CzKb1QQ+sG2\r
+ Jpsr03TP7k2Ju3XkIo9JiAgsaJwflfLhqoL8JVeufkE+fiWW4oxEQy3mouJEAMyYE0fXAgAA\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 21 Jul 2012 17:37:25 -0000\r
+\r
+Previously we ignored any notmuch-search-result-format customizations\r
+for tag formatting because we needed to be able to parse back in the\r
+result line and update the tags in place. We no longer do either of\r
+these things, so we can allow customization of this format.\r
+\r
+(Coincidentally, previously we still allowed too much customization of\r
+the tags format, since moving it earlier on the line or removing it\r
+from the line would interfere with the tagging mechanism. There is\r
+now no problem with doing such things.)\r
+---\r
+ emacs/notmuch.el | 8 +++-----\r
+ 1 file changed, 3 insertions(+), 5 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 7180b9d..d092528 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -775,11 +775,9 @@ non-authors is found, assume that all of the authors match."\r
+ (notmuch-search-insert-authors format-string (plist-get result :authors)))\r
+ \r
+ ((string-equal field "tags")\r
+- ;; Ignore format-string here because notmuch-search-set-tags\r
+- ;; depends on the format of this\r
+- (insert (concat "(" (propertize\r
+- (mapconcat 'identity (plist-get result :tags) " ")\r
+- 'font-lock-face 'notmuch-tag-face) ")")))))\r
++ (let ((tags-str (mapconcat 'identity (plist-get result :tags) " ")))\r
++ (insert (propertize (format format-string tags-str)\r
++ 'face 'notmuch-tag-face))))))\r
+ \r
+ (defun notmuch-search-show-result (result &optional pos)\r
+ "Insert RESULT at POS or the end of the buffer if POS is null."\r
+-- \r
+1.7.10\r
+\r