--- /dev/null
+Return-Path: <david@belohrad.ch>\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 491F1431FBF\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 03:02:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ 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 FOn4DNklKU7c for <notmuch@notmuchmail.org>;\r
+ Tue, 11 Mar 2014 03:02:34 -0700 (PDT)\r
+Received: from server.belohrad.ch (static-212-101-19-163.adsl.solnet.ch\r
+ [212.101.19.163])\r
+ (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 5CD21431FBD\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Mar 2014 03:02:33 -0700 (PDT)\r
+Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch\r
+ [137.138.197.99])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested) (Authenticated sender: david)\r
+ by server.belohrad.ch (Postfix) with ESMTPSA id B212C2C014F;\r
+ Tue, 11 Mar 2014 11:04:11 +0100 (CET)\r
+From: David Belohrad <david@belohrad.ch>\r
+To: Austin Clements <amdragon@MIT.EDU>\r
+Subject: Re: how to specify notmuch colors in emacs24\r
+In-Reply-To: <20140306142730.GH4709@mit.edu>\r
+References: <uaxy50n1mu4.fsf@beesknees.cern.ch>\r
+ <20140306142730.GH4709@mit.edu>\r
+User-Agent: Notmuch/0.17+54~g9ac863c (http://notmuchmail.org) Emacs/24.3.50.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Tue, 11 Mar 2014 11:02:13 +0100\r
+Message-ID: <uaxwqg1xdcq.fsf@beesknees.cern.ch>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: notmuch@notmuchmail.org\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 10:02:38 -0000\r
+\r
+Hi All,\r
+\r
+thanks for extensive answers on this thread. The plum-1 and other\r
+definitions are coming from 'tango-dark' theme of emacs 24, which I\r
+wanted to modify. I understood hence, that the two ways of settings the\r
+colors (notmuch/emacs24) are so far somehow incompatible and hence there\r
+is no way how to specify the notmuch colors the emacs24 way.\r
+\r
+many thanks\r
+.d.\r
+\r
+\r
+\r
+Austin Clements <amdragon@MIT.EDU> writes:\r
+\r
+> Quoth David Belohrad on Mar 06 at 2:24 pm:\r
+>> Dear All,\r
+>> \r
+>> so far I'm changing some color faces programmatically:\r
+>> \r
+>> (setq notmuch-search-line-faces '(("deleted" . (:foreground "red"\r
+>> :background "blue"))\r
+>> ("unread" . (:foreground "DeepSkyBlue"))\r
+>> ("flagged" . (:foreground "firebrick1"))\r
+>> ))\r
+>> \r
+>> \r
+>> I recently upgraded to emacs24. I was using default shipped tango-dark\r
+>> theme. Then (because of VHDL mode I'm using) I have created a custom\r
+>> theme, and I'd like to 'backport' the piece of code above into the\r
+>> custom theme so it is in accordance with the philosophy of themes.\r
+>> \r
+>> I have no idea how to specify it using the 'class approach',as e.g.\r
+>> \r
+>> `(gnus-group-news-1 ((,class (:foreground ,plum-1))))\r
+>> `(gnus-group-news-1-low ((,class (:foreground ,plum-2))))\r
+>> \r
+>> Any hint would be greatly appreciated\r
+>\r
+> I'm not sure what the values of `class', `plum-1', and `plum-2' are in\r
+> your above snippet or what the context of that snippet is, so I may be\r
+> misunderstanding your problem, but it may help to know that\r
+> `gnus-group-news-1' and `notmuch-search-line-faces' are very different\r
+> types of variables.\r
+>\r
+> The value of `gnus-group-news-1' is a face; something like\r
+> (:foreground "plum1"). It looks like what you've written above is\r
+> actually a "face specification", which uses a bunch of conditions (the\r
+> ,class part) to determine which of several potential faces to assign\r
+> to the variable (though you listed only one face for each variable, so\r
+> I'm not sure why you have a condition). It's unfortunate that Emacs\r
+> distinguishes faces and face specification, but that's how it is.\r
+>\r
+> `notmuch-search-line-faces' is *not* a face variable like\r
+> `gnus-group-news-1'. It's an association list that maps tags to\r
+> faces. As such, it won't work if your theme is trying to treat it\r
+> like a face variable, since its value is not a face, but rather a data\r
+> structure that has faces in it.\r