Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 86 / 25c9a8525e03c37e2f3ff76b7b527b7b62ece9
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 83762431FBD\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Mar 2014 19:37:23 -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 9lwvAK3KhCoO for <notmuch@notmuchmail.org>;\r
16         Mon, 10 Mar 2014 19:37:18 -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         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 5E72E431FBC\r
22         for <notmuch@notmuchmail.org>; Mon, 10 Mar 2014 19:37:18 -0700 (PDT)\r
23 X-AuditID: 12074425-f79906d000000cf9-6b-531e76dd9f00\r
24 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
25         (using TLS with cipher AES256-SHA (256/256 bits))\r
26         (Client did not present a certificate)\r
27         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
28         id 26.51.03321.DD67E135; Mon, 10 Mar 2014 22:37:17 -0400 (EDT)\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
30         by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s2B2bGuX005856; \r
31         Mon, 10 Mar 2014 22:37:17 -0400\r
32 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
33         (authenticated bits=0)\r
34         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
35         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s2B2bFwE018144\r
36         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
37         Mon, 10 Mar 2014 22:37:16 -0400\r
38 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
39         (envelope-from <amdragon@mit.edu>)\r
40         id 1WNCZ8-0008SN-UJ; Mon, 10 Mar 2014 22:37:14 -0400\r
41 From: Austin Clements <amdragon@MIT.EDU>\r
42 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
43 Subject: Re: [PATCH v2 3/7] emacs: tag: add customize for deleted/added tag\r
44         formats\r
45 In-Reply-To: <1392841212-8494-4-git-send-email-markwalters1009@gmail.com>\r
46 References: <1392841212-8494-1-git-send-email-markwalters1009@gmail.com>\r
47         <1392841212-8494-4-git-send-email-markwalters1009@gmail.com>\r
48 User-Agent: Notmuch/0.17~rc2+14~g06f47e0 (http://notmuchmail.org) Emacs/23.4.1\r
49         (i486-pc-linux-gnu)\r
50 Date: Mon, 10 Mar 2014 22:37:14 -0400\r
51 Message-ID: <8761nl31gl.fsf@awakening.csail.mit.edu>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-Brightmail-Tracker:\r
55  H4sIAAAAAAAAA+NgFrrPIsWRmVeSWpSXmKPExsUixCmqrXu3TC7Y4PxFJYvVc3ksrt+cyezA\r
56         5LFz1l12j2erbjEHMEVx2aSk5mSWpRbp2yVwZdxb85Ol4L1wxYeTrA2MswW6GDk5JARMJM53\r
57         fGGBsMUkLtxbz9bFyMUhJDCbSeLm1JUsEM5GRonT59+wgVQJCZxmkjiwQgwisYRRYtn7E2AJ\r
58         NgENiW37lzOC2CICrhJPv31mBrGFBYIltu+9xw5icwp4SrRM6IWa2soocXHCD7BmUYEkidNT\r
59         f7N2MXJwsAioSvy/4AwS5gU6r+15JyuELShxcuYTsFOZBbQkbvx7yTSBUWAWktQsJKkFjEyr\r
60         GGVTcqt0cxMzc4pTk3WLkxPz8lKLdC30cjNL9FJTSjcxgsKR3UV1B+OEQ0qHGAU4GJV4eAN8\r
61         5YKFWBPLiitzDzFKcjApifLWlgCF+JLyUyozEosz4otKc1KLDzFKcDArifCetgDK8aYkVlal\r
62         FuXDpKQ5WJTEefvOSgQLCaQnlqRmp6YWpBbBZGU4OJQkeMVAhgoWpaanVqRl5pQgpJk4OEGG\r
63         8wANZy0DGV5ckJhbnJkOkT/FqCglzltUCpQQAElklObB9cLSxStGcaBXhHllQNp5gKkGrvsV\r
64         0GAmoMHNx6VABpckIqSkGhg1U0vlV3wM7P9RcZjPMuLM6Qvy1Q6H6laLW0hWPinqOarEXP6a\r
65         MfLKdoWDi8+8uuXondu4sHPv7HCRZxqiJ6y+TuE+xOywSObE4doZ/bO2Kp3ZzHiSq1F4p39s\r
66         bQCjokn2GTvBlTMlny9SWyD6KNrdkENluVso45dTC/zufZ3mkW67ZK2xwxclluKMREMt5qLi\r
67         RACHOsRe8gIAAA==\r
68 X-BeenThere: notmuch@notmuchmail.org\r
69 X-Mailman-Version: 2.1.13\r
70 Precedence: list\r
71 List-Id: "Use and development of the notmuch mail system."\r
72         <notmuch.notmuchmail.org>\r
73 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
75 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
76 List-Post: <mailto:notmuch@notmuchmail.org>\r
77 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
78 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
79         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
80 X-List-Received-Date: Tue, 11 Mar 2014 02:37:23 -0000\r
81 \r
82 On Wed, 19 Feb 2014, Mark Walters <markwalters1009@gmail.com> wrote:\r
83 > Add customize options for deleted/added tag formats.  These are not\r
84 > used yet but will be later in the series.\r
85 > ---\r
86 >  emacs/notmuch-tag.el |   31 +++++++++++++++++++++++++++++++\r
87 >  1 files changed, 31 insertions(+), 0 deletions(-)\r
88 >\r
89 > diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el\r
90 > index 878aaf7..064fbdb 100644\r
91 > --- a/emacs/notmuch-tag.el\r
92 > +++ b/emacs/notmuch-tag.el\r
93 > @@ -101,6 +101,37 @@ with images."\r
94 >    :group 'notmuch-show\r
95 >    :type 'notmuch-tag-format-type)\r
96 >  \r
97 > +(defcustom notmuch-tag-deleted-formats\r
98 > +  '((".*" (propertize tag 'face\r
99 \r
100 It occurs to me that `propertize' is problematic here, since it replaces\r
101 the face property of the tag wholesale.  If we really want this to apply\r
102 in addition to a face added by notmuch-tag-formats, I don't think\r
103 there's any way to massage things so that `propertize' works (short of\r
104 horrible hackery).  `notmuch-combine-face-text-property-string' does\r
105 exactly what we need here, but maybe needs a shorter name?\r
106 `notmuch-apply-face'?  Or maybe there's some solution I'm not thinking\r
107 of?\r
108 \r
109 > +                   (if (display-supports-face-attributes-p '(:strike-through "red"))\r
110 > +                       '(:strike-through "red")\r
111 > +                     '(:inverse-video t)))))\r
112 > +  "Custom formats for tags when deleted.\r
113 > +\r
114 > +For deleted tags the formats in `notmuch-tag-formats` are applied\r
115 > +first and then these formats are applied on top.\r
116 > +\r
117 > +By default this shows deleted tags with strike-through in red,\r
118 > +unless strike-through is not available (e.g., emacs is running in\r
119 > +a terminal) in which case it uses inverse video. To hide deleted\r
120 > +tags completely set this to\r
121 > +  '((\"\" nil))\r
122 > +\r
123 > +See `notmuch-tag-formats' for full documentation."\r
124 > +  :group 'notmuch-show\r
125 > +  :type 'notmuch-tag-format-type)\r
126 > +\r
127 > +(defcustom notmuch-tag-added-formats\r
128 > +  '((".*" (propertize tag 'face '(:underline "green"))))\r
129 > +  "Custom formats for tags when added.\r
130 > +\r
131 > +For added tags the formats in `notmuch-tag-formats` are applied\r
132 > +first and then these formats are applied on top.\r
133 > +\r
134 > +See `notmuch-tag-formats' for full documentation."\r
135 > +  :group 'notmuch-show\r
136 > +  :type 'notmuch-tag-format-type)\r
137 > +\r
138 >  (defun notmuch-tag-format-image-data (tag data)\r
139 >    "Replace TAG with image DATA, if available.\r
140 >  \r
141 > -- \r
142 > 1.7.9.1\r
143 >\r
144 > _______________________________________________\r
145 > notmuch mailing list\r
146 > notmuch@notmuchmail.org\r
147 > http://notmuchmail.org/mailman/listinfo/notmuch\r