Re: notmuch-tree display
[notmuch-archives.git] / bc / 3f8efc0f85525f1593fc4f6d2bdacb7993518e
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 2253E431FAF\r
6         for <notmuch@notmuchmail.org>; Thu,  6 Mar 2014 06:27:42 -0800 (PST)\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 XzhZOlk54hck for <notmuch@notmuchmail.org>;\r
16         Thu,  6 Mar 2014 06:27:37 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu\r
18         [18.7.68.35])\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 F0AB8431FAE\r
22         for <notmuch@notmuchmail.org>; Thu,  6 Mar 2014 06:27:36 -0800 (PST)\r
23 X-AuditID: 12074423-f79726d000000cc9-ec-531885d74429\r
24 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\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-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
28         id 60.3C.03273.7D588135; Thu,  6 Mar 2014 09:27:35 -0500 (EST)\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
30         by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s26ERXWY022282; \r
31         Thu, 6 Mar 2014 09:27:34 -0500\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 s26ERVEh015104\r
36         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
37         Thu, 6 Mar 2014 09:27:32 -0500\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 1WLZGk-0001MJ-PJ; Thu, 06 Mar 2014 09:27:30 -0500\r
41 Date: Thu, 6 Mar 2014 09:27:30 -0500\r
42 From: Austin Clements <amdragon@MIT.EDU>\r
43 To: David Belohrad <david@belohrad.ch>\r
44 Subject: Re: how to specify notmuch colors in emacs24\r
45 Message-ID: <20140306142730.GH4709@mit.edu>\r
46 References: <uaxy50n1mu4.fsf@beesknees.cern.ch>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 Content-Disposition: inline\r
50 In-Reply-To: <uaxy50n1mu4.fsf@beesknees.cern.ch>\r
51 User-Agent: Mutt/1.5.21 (2010-09-15)\r
52 X-Brightmail-Tracker:\r
53  H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT0b3eKhFssLRPxmJlbwu7xfWbM5kd\r
54         mDw6O0I9nq26xRzAFMVlk5Kak1mWWqRvl8CV8XHTP+aCjQIV77fOYm9gnMXTxcjJISFgItGy\r
55         8w4LhC0mceHeerYuRi4OIYHZTBLPGyeyQjgbGCWmvu9mhHBOMUk83PaWBcJZwijxoOEtWD+L\r
56         gIrEj6Pt7CA2m4CGxLb9yxlBbBEBNYkJvQ/AapgFpCW+/W5mArGFBUwlbh9bDFbPK6At8XXi\r
57         MlYQW0hAX+LvxtnMEHFBiZMzn0D1aknc+PcSqJcDbM7yfxwgYU4BA4n+6YvYQGxRoBOmnNzG\r
58         NoFRaBaS7llIumchdC9gZF7FKJuSW6Wbm5iZU5yarFucnJiXl1qka6aXm1mil5pSuokRHNYu\r
59         yjsY/xxUOsQowMGoxMO7wU88WIg1say4MvcQoyQHk5Iob3aLRLAQX1J+SmVGYnFGfFFpTmrx\r
60         IUYJDmYlEV7ZaqAcb0piZVVqUT5MSpqDRUmct9biV5CQQHpiSWp2ampBahFMVoaDQ0mCVwsY\r
61         v0KCRanpqRVpmTklCGkmDk6Q4TxAw81AaniLCxJzizPTIfKnGBWlxHm5QC4SAElklObB9cLS\r
62         zitGcaBXhHltQNp5gCkLrvsV0GAmoMHRfOIgg0sSEVJSDYx6HCKahaFrju++paKwtPLMweCL\r
63         c2sY/nbPKT63NqDaRYRj0ie9kKAcoxTWdJutIfz/lr16uFUh70uAh6PoyivvXipvC3Gdfe/Y\r
64         N8mcNZ+9pgr3S23csuKQa8mH4NK9chPfO69f9Fo/xjjb5pJCR/cCmU2P1t3yfcIsZtYv9eaq\r
65         2pn1D1gNgi8qsRRnJBpqMRcVJwIA+QiDNBYDAAA=\r
66 Cc: notmuch@notmuchmail.org\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.13\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71         <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
78         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Thu, 06 Mar 2014 14:27:44 -0000\r
80 \r
81 Quoth David Belohrad on Mar 06 at  2:24 pm:\r
82 > Dear All,\r
83\r
84 > so far I'm changing some color faces programmatically:\r
85\r
86 >   (setq notmuch-search-line-faces '(("deleted" . (:foreground "red"\r
87 >                                                   :background "blue"))\r
88 >                                      ("unread" . (:foreground "DeepSkyBlue"))\r
89 >                                      ("flagged" . (:foreground "firebrick1"))\r
90 >                                      ))\r
91\r
92\r
93 > I recently upgraded to emacs24. I was using default shipped tango-dark\r
94 > theme. Then (because of VHDL mode I'm using) I have created a custom\r
95 > theme, and I'd like to 'backport' the piece of code above into the\r
96 > custom theme so it is in accordance with the philosophy of themes.\r
97\r
98 > I have no idea how to specify it using the 'class approach',as e.g.\r
99\r
100 >    `(gnus-group-news-1 ((,class (:foreground ,plum-1))))\r
101 >    `(gnus-group-news-1-low ((,class (:foreground ,plum-2))))\r
102\r
103 > Any hint would be greatly appreciated\r
104 \r
105 I'm not sure what the values of `class', `plum-1', and `plum-2' are in\r
106 your above snippet or what the context of that snippet is, so I may be\r
107 misunderstanding your problem, but it may help to know that\r
108 `gnus-group-news-1' and `notmuch-search-line-faces' are very different\r
109 types of variables.\r
110 \r
111 The value of `gnus-group-news-1' is a face; something like\r
112 (:foreground "plum1").  It looks like what you've written above is\r
113 actually a "face specification", which uses a bunch of conditions (the\r
114 ,class part) to determine which of several potential faces to assign\r
115 to the variable (though you listed only one face for each variable, so\r
116 I'm not sure why you have a condition).  It's unfortunate that Emacs\r
117 distinguishes faces and face specification, but that's how it is.\r
118 \r
119 `notmuch-search-line-faces' is *not* a face variable like\r
120 `gnus-group-news-1'.  It's an association list that maps tags to\r
121 faces.  As such, it won't work if your theme is trying to treat it\r
122 like a face variable, since its value is not a face, but rather a data\r
123 structure that has faces in it.\r