From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Boris Buliga <boris@d12frosted.io>
Newsgroups: gmane.emacs.help
Subject: Overriding inherited face attributes
Date: Tue, 27 Nov 2018 22:18:45 +0200
Message-ID: <CAD5F_-BdnVWDWmznkEjEP9OT0hCef5f_5Ar=tD_QcQoA+o-FKA@mail.gmail.com>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1543350813 28594 195.159.176.226 (27 Nov 2018 20:33:33 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 27 Nov 2018 20:33:33 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 27 21:33:29 2018
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1gRk2y-0007L3-Cg
	for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2018 21:33:28 +0100
Original-Received: from localhost ([::1]:44347 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1gRk54-0005Ir-VF
	for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2018 15:35:39 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53624)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <boris@d12frosted.io>) id 1gRk1c-0001Yx-IR
	for help-gnu-emacs@gnu.org; Tue, 27 Nov 2018 15:32:05 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <boris@d12frosted.io>) id 1gRjov-0004Qa-M0
	for help-gnu-emacs@gnu.org; Tue, 27 Nov 2018 15:18:58 -0500
Original-Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]:45108)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <boris@d12frosted.io>) id 1gRjov-0004Q7-E0
	for help-gnu-emacs@gnu.org; Tue, 27 Nov 2018 15:18:57 -0500
Original-Received: by mail-oi1-x244.google.com with SMTP id b141so20472204oii.12
	for <help-gnu-emacs@gnu.org>; Tue, 27 Nov 2018 12:18:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=d12frosted-io.20150623.gappssmtp.com; s=20150623;
	h=mime-version:from:date:message-id:subject:to;
	bh=D0ZodUmfkiJH9L52kHsyLAly4WuL4GA/8odBzy2VXgo=;
	b=D2hZ39oq0KkIJxWUY1C8t8VXR6k/hqX5cjiz0fWR2kFzgwXKmoNAiuZefvQtIxkQJV
	fVTiRVWK5zRIu1VMd8uP5Flqei1aBA9xF5EO/e3GuzE5XbOOGiEYuX03cLnye6u15Zfl
	DfzGAoS+aFFK2LHs5K5+zguvGthUJR4dnd1xC4L9VCG5IKrfTrzaa9ACd0c1H8p3ZeUk
	LyQVKQuK5YstZpI6Pqtto/Zm7cMJJkIKHGrWPYllLzgJkU3j9No/x9L8FOByFNygvbTo
	3MvhY3YIcxGtPbYGU0SIgcFyIw3tCZClEu0uqAjlpyVnY3WIZkyPncW2mltSM/+zPefx
	vh6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=D0ZodUmfkiJH9L52kHsyLAly4WuL4GA/8odBzy2VXgo=;
	b=nqmloPSwUgaaNGjV/Mn3KdpeD5xH3mCRcxRy1l2ShFmvquwzN/bI24b1pewkVC4eCw
	CqIgvPTerolCXzuBNDa9hoWIwSt0wdSBVOrvWg8MnYdnTQ66K5iPka1g3nB6FkpB4tmd
	c2H7PiuxmHXPtHVy7Pm7PYc9H/XdFADzVBvAGsa3pWi/CEXPBjHi26FwtYuTH0pF5juY
	X6zsmXMbf0cjwJSOiga712KKLtf7WMw/6pRc7UJJewo/3qSuc2uggfXRaNWNUh6ajOp9
	PUBe4f/jer6+9ZvBNvI3+S4kOPfERoLR4Ly8m3EFMYVWTZHSSij3OrA/l6ywnLRE0Nsw
	bSkw==
X-Gm-Message-State: AGRZ1gKCqrB3eZB7Ny1U4HLoB4r8Rw91ULGffpF4Cb0CmZ1S+RoOKfIy
	tdeDlRcMmXtmHrg0yJ8QxPFm5FLqkkbM28dzrA06LPASHu5m7w==
X-Google-Smtp-Source: AJdET5fb86Z0tRGtP5CSEIZrGv1+2OsaCr+cPA1Y07U5TAs+O+gLG6xb29MjyDO+mZlcPfH26dFnfVp8bqhwECsGrY4=
X-Received: by 2002:a05:6808:7:: with SMTP id
	u7mr17885142oic.272.1543349935951; 
	Tue, 27 Nov 2018 12:18:55 -0800 (PST)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4864:20::244
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs/>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
	<help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.help:118774
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/118774>

Hi everyone,

Sorry if this question was answered somewhere before. I searched and didn't
find any working solution, so here I am.

Problem. Override a face attribute that is defined in an inherited face.

For example, open up a new buffer in the fundamental mode and evaulate the
following experssion:

(insert (propertize "hello" 'face '(:foreground "red" :inherit (:foreground
"orange"))))

I expect the word 'hello' to be red, but instead, it is orange.

So two questions:

1. Am I right to expect the text to be red?
2. How to achieve this?

Thanks in advance!

-- 
Cheers,
Boris