From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.devel Subject: deftheme, :inherit & overriding existing values Date: Sat, 07 May 2011 12:17:06 +0300 Organization: DJCBSoftware Message-ID: <20110507091706.DC97939C792@djcbsoftware.nl> Reply-To: djcb@djcbsoftware.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1304759846 7216 80.91.229.12 (7 May 2011 09:17:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 May 2011 09:17:26 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 11:17:22 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QIdda-0007Vk-FY for ged-emacs-devel@m.gmane.org; Sat, 07 May 2011 11:17:22 +0200 Original-Received: from localhost ([::1]:43671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIddZ-0001li-NQ for ged-emacs-devel@m.gmane.org; Sat, 07 May 2011 05:17:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIddW-0001lS-Cm for Emacs-devel@gnu.org; Sat, 07 May 2011 05:17:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIddV-00068U-1c for Emacs-devel@gnu.org; Sat, 07 May 2011 05:17:18 -0400 Original-Received: from vs13.mail.saunalahti.fi ([195.197.172.103]:50845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIddU-000686-SC for Emacs-devel@gnu.org; Sat, 07 May 2011 05:17:17 -0400 Original-Received: from saunalahti-vams (localhost [127.0.0.1]) by vs13.mail.saunalahti.fi (Postfix) with SMTP id BC8682C0050 for ; Sat, 7 May 2011 12:17:08 +0300 (EEST) Original-Received: from vs13.mail.saunalahti.fi ([127.0.0.1]) by vs13.mail.saunalahti.fi ([195.197.172.103]) with SMTP (gateway) id A03E0FBA73C; Sat, 07 May 2011 12:17:08 +0300 Original-Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by vs13.mail.saunalahti.fi (Postfix) with ESMTP id B32E42C0050 for ; Sat, 7 May 2011 12:17:08 +0300 (EEST) Original-Received: from djcbsoftware.nl (a88-112-253-18.elisa-laajakaista.fi [88.112.253.18]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTP id 934BD216569 for ; Sat, 7 May 2011 12:17:07 +0300 (EEST) Original-Received: from cthulhu.mindcrime.djcbsoftware.nl (cthulhu [127.0.0.1]) by djcbsoftware.nl (Postfix) with ESMTP id DC97939C792 for ; Sat, 7 May 2011 12:17:06 +0300 (EEST) Mail-Reply-To: djcb@djcbsoftware.nl User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) X-Antivirus: VAMS X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 195.197.172.103 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139196 Archived-At: Hi all, I've 'ported' the zenburn color theme https://github.com/djcb/elisp/blob/master/themes/zenburn-theme.el to the new emacs 24+ color-theme system. I'm using the latest emacs 24 from bzr. Overall it works well if I start the theme from my .emacs startup, but it works less well if I load a theme after some other packages. E.g., deftheme before wanderlust works, but not the other way around. Let's look at the 'describe-face' output, I've removed all the 'unspecified' values. Loading zenburn before Wanderlust (this works): ,---- | Face: wl-highlight-folder-unread-face (sample) (customize this face) | Inherit: (quote zenburn-red-3) `---- Loading Wanderlust before zenburn (this does not work, i.e. the foreground color will be 'gold', not 'zenburn-red-3'): ,---- | Face: wl-highlight-folder-unread-face (sample) (customize this face) | Foreground: gold | Inherit: (quote zenburn-red-3) `---- Where zenburn-red-3 is defined as `(zenburn-red-3 ((t (:foreground ,zenburn-red-3)))) Apparently, :inherit does not really work as I expected... Reloading the theme won't help -- but, what *does* help is visiting the theme file and issuing M-x eval-buffer. So, I'm not sure this is actually a *bug*, but the current behaviour seems suboptimal anyhow. The equivalent of load-theme + eval-buffer gives the expected result - maybe that should be the default behaviour of load-theme? Best wishes, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C