[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bind faces?
From: |
Chong Yidong |
Subject: |
Re: bind faces? |
Date: |
Sat, 13 May 2006 14:07:57 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Drew Adams" <address@hidden> writes:
> I think the answer to this is "no", but I'm not sure:
>
> Is there some way to get the effect of "binding" a face to a list of face
> properties or the properties of another face? That is, do something akin to
> this:
>
> (let ((some-face another-face-or-a-list-of-face-properties))
> (do-something))
>
> Wouldn't it be useful to be able to do that? We have `let' for variables and
> `flet' (via cl.el) for functions, but nothing for faces, IIUC. (Obviously, a
> user could work with face variables, but those are not always available and
> their use is generally discouraged.)
See face-default-spec, face-spec-set, and the other functions in
faces.el.
Re: bind faces?, Stefan Monnier, 2006/05/14