From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: customize-face + inherit Date: Sat, 13 Feb 2016 23:24:02 +0300 Message-ID: <877fi8gxzx.fsf@gmail.com> References: <87d1s3y42w.fsf@gmail.com> <56BF6EF7.5040504@thregr.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455395066 12653 80.91.229.3 (13 Feb 2016 20:24:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2016 20:24:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Yuri D'Elia Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 13 21:24:21 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 1aUgjt-0000eG-6k for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Feb 2016 21:24:21 +0100 Original-Received: from localhost ([::1]:44688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgjs-0006bq-8g for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Feb 2016 15:24:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgjg-0006a9-5J for help-gnu-emacs@gnu.org; Sat, 13 Feb 2016 15:24:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUgjb-00016P-5l for help-gnu-emacs@gnu.org; Sat, 13 Feb 2016 15:24:08 -0500 Original-Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:35850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgja-00016L-Ui for help-gnu-emacs@gnu.org; Sat, 13 Feb 2016 15:24:03 -0500 Original-Received: by mail-lf0-x22c.google.com with SMTP id 78so69581354lfy.3 for ; Sat, 13 Feb 2016 12:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=I1WB2UweQmCWBbcPClNEnlO9j1oUkicajnkcYgNJBVo=; b=SHxg8X81h2q+uupgEB6TYLfPHnyOP4OH6MN9tEOSmff1PKCckTY6cMsUpwpSjhkzhd frijYLzQGH1mTW/U4AmGmQxXB42P/jQ8bEbtT4fYufuHIPMbliVKlcWyN6l83lt727HD uBgk83uKwj5uW/9oqov8+1ZbBWMFODweMbEk66quOdXZY5dBF4JEC1KebUD20fx/R4Yw 7v439Zps79IsCyZ1yR//wbvb1ygfY7byi7eSayh1ZYkV3ywrWqopHkgNGLXCaGat8GVZ M6HK+Tqe4V0YWQsMH9qEFDnpEnWypFEECcuiFUWBZm0kTdZ+na+d5KSBR14ObOTz4mN+ U8KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=I1WB2UweQmCWBbcPClNEnlO9j1oUkicajnkcYgNJBVo=; b=WMsk9lCpiDfxSWhXZWps8YfmTHNHKDZv69jgtN4aAoPKPGA0MHzWACSjv/HSk/qZ2c XxcUKnEcvILGO+nIgUrQu2rBj+AtYEkNEuPPJfCeEYrPIDtN0P/0LTafpcm+mcsB94Hz V4uPLLgut3upYVzKBkFHsdhzv10pG61h6BbQi0SQvd5GWtyY0OD89DN3MvCa7q12iCrd iJNirLuodk97/B9NnRSsQeWpWTx+T+mH/cn5gp1sEQ3Vtk8pT6yjKLkWI8NYAyHuET6C 2FxDhohoMj3ulMi4rAbOm+d2xOEZK6+2OJiyHR8O4XRzD7k8zlcupdDPLxcptvUfVWQJ QGaw== X-Gm-Message-State: AG10YORQM57QK2ZGyjrqheGxN40F54LHAmajJNcW+gz/mwd+biUVdTFt3BzZopOHc7XLJA== X-Received: by 10.25.20.228 with SMTP id 97mr3582863lfu.25.1455395042233; Sat, 13 Feb 2016 12:24:02 -0800 (PST) Original-Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id r191sm2656929lfe.28.2016.02.13.12.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Feb 2016 12:24:01 -0800 (PST) In-Reply-To: <56BF6EF7.5040504@thregr.org> (Yuri D'Elia's message of "Sat, 13 Feb 2016 18:59:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22c 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:109161 Archived-At: Yuri D'Elia (2016-02-13 20:59 +0300) wrote: > On 11/02/16 10:43, Alex Kost wrote: >>> I'd like to customize a face so that it inherits *all* values from it's >>> parent. That is, I want the face to be an exact copy of the parent. >>> >>> To do that, I can add the 'inherit' property to the desired parent face, >>> but I would also need to *clear* the rest of the attributes from the >>> face being customized, such as foreground. >> >> Hm, I recall this was an issue in Emacs 24.3.1 and earlier versions, >> but it is fixed in Emacs 24.4 (I believe). What's your version? > > I'm using 24.5.1 from debian/sid. I use the same version. > It seems to work for some faces, but not for others. > > I'm trying to reset the message-header-subject face. > > Removing the foreground attribute with customize-face doesn't do > anything at all, but setting it manually through (set-face-attribute) works. Hm, I don't have this problem. So what I did: - I disabled all themes with "M-x customize-themes"; - "M-x customize-face RET message-header-subject"; - "uncheck" Foreground field; - press "C-c C-c" and the subject color changes from "navy blue" (for the light background) to a default (black). > The same goes for message-header-other. > Any idea of what could cause this? No idea, but if you have a reproducible recipe, I suggest "M-x report-emacs-bug". -- Alex