From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.help Subject: Re: customize-face + inherit Date: Mon, 07 Mar 2016 12:36:39 +0100 Message-ID: <87bn6qcyew.fsf@wavexx.thregr.org> References: <87d1s3y42w.fsf@gmail.com> <56BF6EF7.5040504@thregr.org> <877fi8gxzx.fsf@gmail.com> <87io0zpbvk.fsf@wavexx.thregr.org> <87h9gj8e8v.fsf@wavexx.thregr.org> <1aa784a7-0d58-4efa-95ae-cf7972b26bf1@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457350669 9202 80.91.229.3 (7 Mar 2016 11:37:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 11:37:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 12:37:40 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1actTn-0000nW-Sn for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 12:37:40 +0100 Original-Received: from localhost ([::1]:55146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actTn-0003Sb-AE for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 06:37:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actT6-0002oR-7e for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 06:37:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1actT2-0008W3-U1 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 06:36:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actT2-0008Vx-Mz for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 06:36:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1actT0-0000If-If for help-gnu-emacs@gnu.org; Mon, 07 Mar 2016 12:36:50 +0100 Original-Received: from 193.106.183.18 ([193.106.183.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2016 12:36:50 +0100 Original-Received: from wavexx by 193.106.183.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2016 12:36:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:GDm+IcUnu48tlRrYthiV5vQ7hUg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109492 Archived-At: On Sun, Mar 06 2016, Drew Adams wrote: >> color-theme.el (https://www.emacswiki.org/emacs/ColorThemes) > > Just a shot in the dark, from scanning the code: > Can you customize `color-theme-illegal-faces' to exclude the > face in question, so color-theme does not affect it? > > E.g., what happens if you change it from the default value of > "^w3-" to "^w3-\\|message-header-subject" or similar? I'd rather not disable theming for these faces. In all the cases, when I'm happy with a theme, I just want to add minor tweaks to an existing face while leaving existing attributes as-is. I didn't read color-theme.el, but my guess is that it doesn't see nil as an explicit value to set. You can see the same behavior while trying to set :bold nil as opposed to :weight normal. It's not such as a big problem for me, as after loading the theme I generally override complex faces (that I want to change between background modes, for example) directly with color-theme-install-faces in cumulative mode. But when I try out a new mode, my first go-to approach is to test the face parameters with customize. In this case, you're baffled as unchecking a parameter might will not override the theme.