Mercurial > emacs
comparison lispref/display.texi @ 63659:ce9e9d1055bf
(Face Functions): Mention face aliases.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 22 Jun 2005 14:16:33 +0000 |
parents | 2b9aa367d2f8 |
children | 7c067b8d0f4e |
comparison
equal
deleted
inserted
replaced
63658:35913598e5b7 | 63659:ce9e9d1055bf |
---|---|
2521 @defun face-differs-from-default-p face &optional frame | 2521 @defun face-differs-from-default-p face &optional frame |
2522 This returns non-@code{nil} if the face @var{face} displays | 2522 This returns non-@code{nil} if the face @var{face} displays |
2523 differently from the default face. | 2523 differently from the default face. |
2524 @end defun | 2524 @end defun |
2525 | 2525 |
2526 @cindex face alias | |
2527 A @dfn{face alias} provides an equivalent name for a face. You can | |
2528 define a face alias by giving the alias symbol the @code{face-alias} | |
2529 property, with a value of the target face name. The following example | |
2530 makes @code{modeline} an alias for the @code{mode-line} face. | |
2531 | |
2532 @example | |
2533 (put 'modeline 'face-alias 'mode-line) | |
2534 @end example | |
2535 | |
2536 | |
2526 @node Auto Faces | 2537 @node Auto Faces |
2527 @subsection Automatic Face Assignment | 2538 @subsection Automatic Face Assignment |
2528 @cindex automatic face assignment | 2539 @cindex automatic face assignment |
2529 @cindex faces, automatic choice | 2540 @cindex faces, automatic choice |
2530 | 2541 |