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

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

Re: copy-face on Emacs 21


From: Miles Bader
Subject: Re: copy-face on Emacs 21
Date: 16 Jul 2002 10:17:12 +0900

Kevin Rodgers <kevinr@ihs.com> writes:
> > (defface face-B '((t (:inherit face-A))) "Face B")
> > Note that, unlike `copy-face', :inherit is dynamic -- if you
> > subsequently change face-A, face-B will reflect the change.
> 
> Thanks again!  But I want face-A to provide the defaults for face-B, then
> 
> allow each of them to be modified independently -- is that possible?

Well, keep in mind that :inherit provides dynamic _defaults_ -- if
face-B specifies any of its own attributes, then they'll override the
inherited attributes (or modify them, in the case of relative values).

So if you define face-B as above, and the user customizes it, he can can
make it look however he wants, with anything he doesn't change being
inherited from face-A.

-Miles
-- 
We live, as we dream -- alone....



reply via email to

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