From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8454: deftheme, :inherit & overriding existing values Date: Sun, 08 May 2011 16:14:53 -0400 Message-ID: <87mxix7xvm.fsf@stupidchicken.com> References: <20110507091706.DC97939C792@djcbsoftware.nl> <4DC54D3D.7090409@gmail.com> <87r58980f7.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304885774 24840 80.91.229.12 (8 May 2011 20:16:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 May 2011 20:16:14 +0000 (UTC) Cc: 8454@debbugs.gnu.org, "Dirk-Jan C. Binnema" To: Christoph Scholtes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 08 22:16:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1QJAOd-0001zE-HL for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2011 22:16:07 +0200 Original-Received: from localhost ([::1]:42676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJAOc-0008J1-QY for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2011 16:16:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJAOa-0008Iw-62 for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 16:16:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJAOZ-00013t-5w for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 16:16:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJAOZ-00013j-2w for bug-gnu-emacs@gnu.org; Sun, 08 May 2011 16:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QJAOY-0006nG-Dz; Sun, 08 May 2011 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2011 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8454 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8454-submit@debbugs.gnu.org id=B8454.130488570326025 (code B ref 8454); Sun, 08 May 2011 20:16:02 +0000 Original-Received: (at 8454) by debbugs.gnu.org; 8 May 2011 20:15:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJANa-0006lb-Ek for submit@debbugs.gnu.org; Sun, 08 May 2011 16:15:02 -0400 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJANY-0006lI-9g for 8454@debbugs.gnu.org; Sun, 08 May 2011 16:15:00 -0400 Original-Received: from furball (dhcp128036225146.central.yale.edu [128.36.225.146]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p48KEsCB017080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 8 May 2011 16:14:54 -0400 Original-Received: by furball (Postfix, from userid 1000) id D88D0160603; Sun, 8 May 2011 16:14:53 -0400 (EDT) In-Reply-To: <87r58980f7.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 08 May 2011 15:19:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 08 May 2011 16:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46334 Archived-At: Chong Yidong writes: > I'm afraid both bug reports are too vague for me to figure out exactly > what is supposed to be going wrong. Could someone provide a precise, > step-by-step recipe for reproducing the problem? OK, I found a bug in the case where defface is called after loading a theme with settings for that face. The defface settings were not being applied; I've checked a fix into the trunk. However, I'm not sure this is the issue you are talking about, since this bug was not specific to the :inherit property. Could you check if your problem is fixed? One possible source of confusion, which may apply to Dirk-Jan's report, is that :inherit only tells Emacs to consult the parent face if a face attribute is unspecified. If the attribute is specified, it overrides the inheritance. So if your Custom theme want to "cancel out", say, any existing foreground attribute setting, you need something like '(froob ((t (:foreground unspecified :inherit parent-face))))