Re: [PATCH v2 3/7] emacs: tag: add customize for deleted/added tag formats
authorAustin Clements <amdragon@MIT.EDU>
Tue, 11 Mar 2014 02:09:28 +0000 (22:09 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:36 +0000 (10:00 -0800)
55/b227e5facd4cd36d8c237e8e1285752513185b [new file with mode: 0644]

diff --git a/55/b227e5facd4cd36d8c237e8e1285752513185b b/55/b227e5facd4cd36d8c237e8e1285752513185b
new file mode 100644 (file)
index 0000000..adf8247
--- /dev/null
@@ -0,0 +1,140 @@
+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 84A1E431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 10 Mar 2014 19:09:39 -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 QcqW+uAmNLnW for <notmuch@notmuchmail.org>;\r
+       Mon, 10 Mar 2014 19:09:33 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu\r
+       [18.7.68.35])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id F26A6431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 10 Mar 2014 19:09:32 -0700 (PDT)\r
+X-AuditID: 12074423-f79726d000000cc9-b4-531e705c0ac5\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id E6.9F.03273.C507E135; Mon, 10 Mar 2014 22:09:32 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s2B29UJk025645; \r
+       Mon, 10 Mar 2014 22:09:31 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s2B29SU6008979\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Mon, 10 Mar 2014 22:09:30 -0400\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1WNC8G-0008Jg-GQ; Mon, 10 Mar 2014 22:09:28 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 3/7] emacs: tag: add customize for deleted/added tag\r
+       formats\r
+In-Reply-To: <1392841212-8494-4-git-send-email-markwalters1009@gmail.com>\r
+References: <1392841212-8494-1-git-send-email-markwalters1009@gmail.com>\r
+       <1392841212-8494-4-git-send-email-markwalters1009@gmail.com>\r
+User-Agent: Notmuch/0.17~rc2+14~g06f47e0 (http://notmuchmail.org) Emacs/23.4.1\r
+       (i486-pc-linux-gnu)\r
+Date: Mon, 10 Mar 2014 22:09:28 -0400\r
+Message-ID: <87bnxd32qv.fsf@awakening.csail.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsUixCmqrBtTIBds0PGL02L1XB6L6zdnMjsw\r
+       eeycdZfd49mqW8wBTFFcNimpOZllqUX6dglcGZ3/NzIXLBKoeLGguoFxLm8XIyeHhICJxN/3\r
+       m5khbDGJC/fWs4HYQgKzmSSevDXsYuQCsjcySmxp28AK4ZwGSrxYzwThLGGUOLZ/DxNIC5uA\r
+       hsS2/csZQWwRAVeJp98+g40VFgiW2L73HjuIzSngKdEyoZcFormVUeLihB9g+0QFkiROT/3N\r
+       CmKzCKhK3H+9AKyZF+i+lZMamSBsQYmTM5+wgNjMAloSN/69ZJrAKDALSWoWktQCRqZVjLIp\r
+       uVW6uYmZOcWpybrFyYl5ealFumZ6uZkleqkppZsYQQHJ7qK8g/HPQaVDjAIcjEo8vCv95YKF\r
+       WBPLiitzDzFKcjApifKuywQK8SXlp1RmJBZnxBeV5qQWH2KU4GBWEuE9bQGU401JrKxKLcqH\r
+       SUlzsCiJ8/adlQgWEkhPLEnNTk0tSC2CycpwcChJ8C7NB2oULEpNT61Iy8wpQUgzcXCCDOcB\r
+       Gr4epIa3uCAxtzgzHSJ/ilFRSpx3FkhCACSRUZoH1wtLGK8YxYFeEeZ1B6niASYbuO5XQIOZ\r
+       gAY3H5cCGVySiJCSamAUdNaS+BdYopd/tqKWkV2XJZdfUOl8zp6bds93bky5tVrMRfwX589T\r
+       WhePP795aOGPecGvn2pKB6kJP9h9qzHZ7NfJtUyztnGw1FovCv6omfAwVkrte3H4jAl8e+T0\r
+       Yl54Mh97vFpXK+pXqzFT1M+uCB75r2c4YpXnHUrbVyubELbq8aWC4BYlluKMREMt5qLiRAAI\r
+       fuCU8wIAAA==\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: Tue, 11 Mar 2014 02:09:39 -0000\r
+\r
+On Wed, 19 Feb 2014, Mark Walters <markwalters1009@gmail.com> wrote:\r
+> Add customize options for deleted/added tag formats.  These are not\r
+> used yet but will be later in the series.\r
+> ---\r
+>  emacs/notmuch-tag.el |   31 +++++++++++++++++++++++++++++++\r
+>  1 files changed, 31 insertions(+), 0 deletions(-)\r
+>\r
+> diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el\r
+> index 878aaf7..064fbdb 100644\r
+> --- a/emacs/notmuch-tag.el\r
+> +++ b/emacs/notmuch-tag.el\r
+> @@ -101,6 +101,37 @@ with images."\r
+>    :group 'notmuch-show\r
+>    :type 'notmuch-tag-format-type)\r
+>  \r
+> +(defcustom notmuch-tag-deleted-formats\r
+> +  '((".*" (propertize tag 'face\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
+Should this be '((\".*\" nil))?\r
+\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
+> +  '((".*" (propertize tag 'face '(: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
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r