all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Overriding inherited face attributes
@ 2018-11-27 20:18 Boris Buliga
  2018-11-27 21:33 ` Stephen Berman
  0 siblings, 1 reply; 17+ messages in thread
From: Boris Buliga @ 2018-11-27 20:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone,

Sorry if this question was answered somewhere before. I searched and didn't
find any working solution, so here I am.

Problem. Override a face attribute that is defined in an inherited face.

For example, open up a new buffer in the fundamental mode and evaulate the
following experssion:

(insert (propertize "hello" 'face '(:foreground "red" :inherit (:foreground
"orange"))))

I expect the word 'hello' to be red, but instead, it is orange.

So two questions:

1. Am I right to expect the text to be red?
2. How to achieve this?

Thanks in advance!

-- 
Cheers,
Boris


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-11-29 17:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-27 20:18 Overriding inherited face attributes Boris Buliga
2018-11-27 21:33 ` Stephen Berman
2018-11-28  6:19   ` Eli Zaretskii
2018-11-28 12:24     ` Stephen Berman
2018-11-28 13:06       ` Eli Zaretskii
2018-11-28 13:13         ` Stephen Berman
2018-11-28 16:18           ` Eli Zaretskii
2018-11-28 20:01             ` Stephen Berman
2018-11-28 20:35               ` Eli Zaretskii
2018-11-28 21:34                 ` Stephen Berman
2018-11-29  7:14                   ` Eli Zaretskii
2018-11-29 17:30                     ` Stephen Berman
2018-11-28 21:44                 ` Boris Buliga
2018-11-29  7:08                   ` Eli Zaretskii
2018-11-28  7:39   ` Boris Buliga
2018-11-28  7:51     ` Eli Zaretskii
2018-11-28  8:42       ` Boris Buliga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.