help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding inherited face attributes


From: Eli Zaretskii
Subject: Re: Overriding inherited face attributes
Date: Wed, 28 Nov 2018 22:35:55 +0200

> From: Stephen Berman <stephen.berman@gmx.net>
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]