From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Overriding inherited face attributes Date: Wed, 28 Nov 2018 21:01:36 +0100 Message-ID: <87a7lt0y5b.fsf@rub.de> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543435254 29470 195.159.176.226 (28 Nov 2018 20:00:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 20:00:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 21:00:50 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 1gS60u-0007TH-2o for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 21:00:48 +0100 Original-Received: from localhost ([::1]:49765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS630-0006eK-3w for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 15:02:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS623-0006dP-7O for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:02:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS61x-00067b-Dx for help-gnu-emacs@gnu.org; Wed, 28 Nov 2018 15:01:58 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:35707) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS61j-0005NJ-L0; Wed, 28 Nov 2018 15:01:39 -0500 Original-Received: from rosalinde ([188.109.205.78]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Mcxtm-1g9sgc3xYo-00IDNc; Wed, 28 Nov 2018 21:01:37 +0100 In-Reply-To: <831s75fa5q.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Nov 2018 18:18:25 +0200") X-Provags-ID: V03:K1:2Dcd1utKJBx8e4nFyKJHOsJggfr69RM4EBDnGOpxlAIp+T5GPXO 2YiR861LdlTSZk4qe1IB67raHdpQykuS1iPeZmYdZ3Amsp4V20rrz1yGX9h0V+uTfvN/ls3 QPlfOCikI4itrQf/vetDCvzTk9aE4JjdI5fH8qviRi87A3PqEKQPhDzsRhqF/pYCoJw/4Fs KNghxrAEG3lg2++t3/Bow== X-UI-Out-Filterresults: notjunk:1;V03:K0:BgS3wlCyiqw=:k9aeTS8Kg1vHBaUARcR/J+ Y9u+0fcQO4/8kGnEe3BiHMyYscUN5WYoYgvvA/k08UO/F/J0MBZCddze7LQE2tKdH+2RanYFm H2eKuPl13TqboQFxQWZEbK4QQeAEHzFNeSkkDP315Uv2BU8Lm9koe42vnvYudJ92GgW1UetsT pWzTealD5SZkLVHes59r0IW9lHL0lM+EdYlWBZTmmMmSSBcicXL2pUZw0uOdqQ9mmoOYbYdJ+ GpI+x3fE+cCBQXbdakhf+Hl6imBdpenBjqupd75bFuYVE/myJCXVvtlIcFRfRmyg17x1IjIGM h1SKOU75CEmzfG5G3QLb/f3Kb9kg+jM+CNbKz+TM60RZo2oFejUOZeJ38m84poTopH7gLVpkb xwLUQtnsVKrcyr7iQy1Or+RvrgPAtBFLHsMx5FP+FrH5Zc7dowBZJg2vbYS19FIz9xrSxZp5f deVyKEpphuBnQliIrsoeRiVggDGz0K5yW4Ql6VbeS+PJtONrM662SypSTuZZx6K2ErMJAFVh1 j0yINAEDBYFHDWJYVpcVAtu5eEAYhJsD22zbWuhFlu+85l2uF8r2ZTPwjbKXgiby7g5KiO+40 wudipUn/0vkDjCaWWibLogezgzDbv6Ef1w0wzBayhx3Ry8aJFHybip7qcPOanSIq0c2yjN9hK iUUogyXYeFhajhcMFTaIl9mQ7N6d8q7m0XgFKuJtcZPOFLLsIwc+AGObkOf3sTYccisS8Ss1O CnYm0Wt9EwunBGDKseGf1YtxAlY5p5sv0RoP/sej1rad1T1T0VAfRjcoioI88RJ3ZGU5zY7l X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:118798 Archived-At: On Wed, 28 Nov 2018 18:18:25 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: help-gnu-emacs@gnu.org >> Date: Wed, 28 Nov 2018 14:13:39 +0100 >> >> >> (insert (propertize "hello" 'face '(:inherit (:foreground "orange") >> >> :foreground "red"))) >> >> >> >> makes the face display as red, and this seems to conflict with the above >> >> documentation. >> > >> > It doesn't, because ':foreground "red"' is not the "underlying face". >> >> That occurred to me, but then I have to conclude I really don't >> understand the doc, according to my reading of which the `inherit' >> property should have higher priority by virtue of being earlier in the >> list. > > If someone has concrete proposals for how to make the documentation of > these aspects better, I'm open to suggestions. 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. 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") unless "occurring earlier in the list" and "higher priority" have non-standard meanings, which should then also be defined in the documentation. And from what you wrote above, the higher priority of the `inherit' property is irrelevant in these examples, since as you said "':foreground "red"' is not the "underlying face". So can you point out the passage(s) in the manual from which the above observed differences follow? Maybe once I see that I'll be satisfied with the existing documentation, or else could try to suggest improvements. Steve Berman