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: Thu, 29 Nov 2018 09:08:47 +0200 Message-ID: <83h8g0e4xs.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> <83in0hdjo4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1543475228 16286 195.159.176.226 (29 Nov 2018 07:07:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 07:07:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 08:07:04 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 1gSGPg-00046H-2x for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 08:07:04 +0100 Original-Received: from localhost ([::1]:52582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSGRm-0006o6-98 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 02:09:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSGRC-0006np-IL for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 02:08:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSGR9-0003E9-FS for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 02:08:38 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSGR9-0003Dy-A8 for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 02:08:35 -0500 Original-Received: from [176.228.60.248] (port=1706 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gSGR8-0001DH-U3 for help-gnu-emacs@gnu.org; Thu, 29 Nov 2018 02:08:35 -0500 In-reply-to: (message from Boris Buliga on Wed, 28 Nov 2018 23:44:47 +0200) 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:118803 Archived-At: > From: Boris Buliga > Date: Wed, 28 Nov 2018 23:44:47 +0200 > Cc: help-gnu-emacs@gnu.org > > I don't see how it's specific to propetize. I can attach face differently, for > example, by using add-text-properties or add-face-text-property: propetize calls add-text-properties internally, so it's small wonder you see the same results. It is important to distinguish between 2 issues: 1) How propertize and add-text-properties deal with lists of face attributes when later attributes override earlier ones. This is what you seem to be asking about. 2) How the Emacs display engine handles face attributes that come from different sources for the same display position. This is what the ELisp manual talks about, mainly. These two are different, because when propertize has done its thing, the face attributes for the text it processed will be coming from a single source: the face information associated with that text.