From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8454: Themes can't work right due to design Date: Mon, 05 Dec 2011 14:03:32 -0500 Message-ID: References: <867hb45bh2.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323111880 25157 80.91.229.12 (5 Dec 2011 19:04:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2011 19:04:40 +0000 (UTC) Cc: 8454@debbugs.gnu.org To: Chris Hanson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 05 20:04:36 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 1RXdq7-000463-V4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 20:04:36 +0100 Original-Received: from localhost ([::1]:50000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXdq6-0007X0-Qh for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 14:04:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXdq3-0007Wv-HJ for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 14:04:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXdq2-00017F-CA for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 14:04:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXdq2-000179-3v for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 14:04:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RXdqY-0007ho-Bq for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 14:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2011 19:05: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.132311185229565 (code B ref 8454); Mon, 05 Dec 2011 19:05:02 +0000 Original-Received: (at 8454) by debbugs.gnu.org; 5 Dec 2011 19:04:12 +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 1RXdph-0007gm-VS for submit@debbugs.gnu.org; Mon, 05 Dec 2011 14:04:11 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXdpg-0007gf-6t for 8454@debbugs.gnu.org; Mon, 05 Dec 2011 14:04:09 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pB5J3WN7021316; Mon, 5 Dec 2011 14:03:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0F4025938C; Mon, 5 Dec 2011 14:03:32 -0500 (EST) In-Reply-To: (Chris Hanson's message of "Sun, 4 Dec 2011 22:54:09 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4062=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4062> : streams <708067> : uri <1022312> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Dec 2011 14:05:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54723 Archived-At: > The first is that :inherit isn't very useful as a way to say "make the > current face like the specified one". Because color-theme clobbers > face-defface-spec, it effectively erases any previous face settings, > so that the theme settings are self-contained. There is no equivalent > way to do this with custom-theme, which has led me to write things > like `(font-lock-type-face ,zenburn-primary-3) rather than > `(font-lock-type-face ((t (:inherit zenburn-primary-3)))) . This > works but is somewhat unsatisfying. I don't really understand the problem here, probably because I'm not sufficiently versed in themes, but just in case, you may want to give a more specific example of what behavior you're trying to get, what you tried (presumably something like ((t (:inherit foo)))) and what you don't like about the resulting behavior. > The second is that a face attribute that's explicitly set can't be > overridden by a custom theme, for reasons I'm not completely clear on. That's the way the interaction between custom settings and Lisp settings are defined, because it seems like the only "sane" way to handle it. > For example, "cc-fonts.el" contains (set-face-foreground > 'c-annotation-face "blue") Probably something that should be fixed. Stefan