--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\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 7105F429E31\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 21:10:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+ 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 ip9Wt6qLqMnH for <notmuch@notmuchmail.org>;\r
+ Tue, 11 Mar 2014 21:10:17 -0700 (PDT)\r
+Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com\r
+ [209.85.212.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 3E3D4431FC3\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 21:10:09 -0700 (PDT)\r
+Received: by mail-wi0-f180.google.com with SMTP id hm4so1804048wib.13\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 21:10:08 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+ bh=q90YJ2N4M9H+SP7Z0Qm2ZJwSyfQEVI+JjvJY+qwEGks=;\r
+ b=Va2U6Tqc/jymVfl4dLPpY0GrUVyQrb15oZQefJE4EJ+SeG4il9kUTDpSFJPH38vCiB\r
+ 0QF4DQ2CAVThaKS4yST2iFsOSLRFe+1GojvcdyyBka3VeuzWuE4rRRKeXsfkjwhQoaFX\r
+ ecrP30yOrsihLT5wyDMQlggOSmTR0bb4n23tENpchwnNqvtuoHbqG959Q8PmoRgEfMxB\r
+ owD+nCjTtGZfqE34UQ3gVOgNWkKFA1I4hObUceHebfrodIqOr651j+BWJyj2uMKYp6VC\r
+ S5NqltgBqGXZMtUtaF6aV2CuF5/NNfcuTG3i0sx3jNtWek4YvdmkUqoV+zcBegUQMOxz\r
+ L1hw==\r
+X-Received: by 10.180.13.197 with SMTP id j5mr5738697wic.14.1394597408115;\r
+ Tue, 11 Mar 2014 21:10:08 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+ by mx.google.com with ESMTPSA id\r
+ qg3sm12258254wic.10.2014.03.11.21.10.07 for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Tue, 11 Mar 2014 21:10:07 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org,\r
+ amdragon@mit.edu\r
+Subject: [Patch v3 4/8] emacs: tag: add customize for deleted/added tag\r
+ formats\r
+Date: Wed, 12 Mar 2014 04:09:53 +0000\r
+Message-Id: <1394597397-8486-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1394597397-8486-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1394597397-8486-1-git-send-email-markwalters1009@gmail.com>\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: Wed, 12 Mar 2014 04:10:21 -0000\r
+\r
+Add customize options for deleted/added tag formats. These are not\r
+used yet but will be later in the series.\r
+\r
+We switch to using `notmuch-apply-face' rather than `propertize' in\r
+the defcustom for faces so that the faces for deleted/added tags add\r
+to the default face attributes for the tag.\r
+\r
+We special case deleting the unread tag as that tag is a strong visual\r
+cue and we don't need that cue when we are just saying it used to be\r
+unread. Thus, we revert to the normal tag face with strikethough for\r
+deleted unread tags.\r
+---\r
+ emacs/notmuch-tag.el | 37 ++++++++++++++++++++++++++++++++++++-\r
+ 1 files changed, 36 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el\r
+index a4dea39..4698856 100644\r
+--- a/emacs/notmuch-tag.el\r
++++ b/emacs/notmuch-tag.el\r
+@@ -39,7 +39,7 @@ (define-widget 'notmuch-tag-format-type 'lazy\r
+ (string :tag "Display as")\r
+ (list :tag "Face" :extra-offset -4\r
+ (const :format "" :inline t\r
+- (propertize tag 'face))\r
++ (notmuch-apply-face tag))\r
+ (list :format "%v"\r
+ (const :format "" quote)\r
+ custom-face-edit))\r
+@@ -89,6 +89,41 @@ (defcustom notmuch-tag-formats\r
+ :group 'notmuch-show\r
+ :type 'notmuch-tag-format-type)\r
+ \r
++(defcustom notmuch-tag-deleted-formats\r
++ '(("unread" (notmuch-apply-face "unread"\r
++ (if (display-supports-face-attributes-p '(:strike-through "red"))\r
++ '(:strike-through "red")\r
++ '(:inverse-video t))))\r
++ (".*" (notmuch-apply-face tag\r
++ (if (display-supports-face-attributes-p '(:strike-through "red"))\r
++ '(:strike-through "red")\r
++ '(:inverse-video t)))))\r
++ "Custom formats for tags when deleted.\r
++\r
++For deleted tags the formats in `notmuch-tag-formats` are applied\r
++first and then these formats are applied on top.\r
++\r
++By default this shows deleted tags with strike-through in red,\r
++unless strike-through is not available (e.g., emacs is running in\r
++a terminal) in which case it uses inverse video. To hide deleted\r
++tags completely set this to\r
++ '((\".*\" nil))\r
++\r
++See `notmuch-tag-formats' for full documentation."\r
++ :group 'notmuch-show\r
++ :type 'notmuch-tag-format-type)\r
++\r
++(defcustom notmuch-tag-added-formats\r
++ '((".*" (notmuch-apply-face tag '(:underline "green"))))\r
++ "Custom formats for tags when added.\r
++\r
++For added tags the formats in `notmuch-tag-formats` are applied\r
++first and then these formats are applied on top.\r
++\r
++See `notmuch-tag-formats' for full documentation."\r
++ :group 'notmuch-show\r
++ :type 'notmuch-tag-format-type)\r
++\r
+ (defun notmuch-tag-format-image-data (tag data)\r
+ "Replace TAG with image DATA, if available.\r
+ \r
+-- \r
+1.7.9.1\r
+\r