[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:28 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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
>
Ah, very good thanks. In my case since the face name is dynamically
generated it was of the form
(propertize str 'face (list (genFace "base") (genFace "base" y))
'gnus-face t) where genFace uses (intern) to convert a string name to
its internal symbol.
thanks a lot.