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

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

Re: apply multiple faces using propertize


From: Richard Riley
Subject: Re: apply multiple faces using propertize
Date: Wed, 08 Dec 2010 15:27:30 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Richard Riley <rileyrg@gmail.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> Could some kind soul give me an example of stacking faces in elisp using
>>> "propertize" please e.g the system display will use the second face if
>>> the first is not defined?
>>
>> (propertize "foo" 'face '(face1 face2)) ?
>>
>>         Stefan
>>
>
> Hi Stefan
>
> I have been digging around and cant find a way to set an existing face
> :inherit property programmatically. Is it possible or only when I
> defined the face to start with?
>
> r.

ok, sorry for the noise, the function I want is set-face-attribute - I
had been tab completing on face-*. Now I need to battle with my
understanding of symbols. e.g I have a string var myFace which has a
value of "myNewFace". I want to copy an existing face and create a new
face called 'mynewFace and then set the properties. Trial and error will
get me there I hope but any pointers appreciated.


reply via email to

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