From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Overriding inherited face attributes Date: Wed, 28 Nov 2018 22:35:55 +0200 Message-ID: <83in0hdjo4.fsf@gnu.org> References: <87pnuqfboc.fsf@gmx.net> <83sgzlg1w7.fsf@gnu.org> <87in0h1jak.fsf@rub.de> <8336rlfj1y.fsf@gnu.org> <87efb51h18.fsf@rub.de> <831s75fa5q.fsf@gnu.org> <87a7lt0y5b.fsf@rub.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1543437352 8732 195.159.176.226 (28 Nov 2018 20:35:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 20:35:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 21:35:48 2018 Return-path: 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 ) id 1gS6Yl-00027x-6p for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 21:35:47 +0100 Original-Received: from localhost ([::1]:49884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS6ar-0004SI-Pr for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 15:37:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS6Yn-0003OM-6p for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:35:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS6Yi-0007bm-4c for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:35:49 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS6Yi-0007bi-1T for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:35:44 -0500 Original-Received: from [176.228.60.248] (port=2391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gS6Yh-0001DZ-Ly for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:35:44 -0500 In-reply-to: <87a7lt0y5b.fsf@rub.de> (message from Stephen Berman on Wed, 28 Nov 2018 21:01:36 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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 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" Xref: news.gmane.org gmane.emacs.help:118799 Archived-At: > From: Stephen Berman > Cc: help-gnu-emacs@gnu.org > Date: Wed, 28 Nov 2018 21:01:36 +0100 > > It would be helpful to know from precisely which part of the > documentation it follows that evaluating this: > > (insert (propertize "hello" 'face '(:foreground "red" :inherit > (:foreground "orange")))) > > displays "hello" in orange while evaluating this: > > (insert (propertize "hello" 'face '(:inherit (:foreground "orange") > :foreground "red"))) > > displays "hello" in red. So this is only about what propertize does? And only when some of the later properties override earlier ones? > I don't see how it follows from the passage in the Lisp manual I > cited ("Faces occurring earlier in the list have higher priority") It doesn't, because what you cited is not related to propertize, it's related to how we process faces that come from several different sources that affect the same piece of text.