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 18:18:25 +0200

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



reply via email to

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