Mercurial > emacs
changeset 63777:fd183c9e3b18
(Faces): `facep' returns t for strings that are face names.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Sun, 26 Jun 2005 00:05:46 +0000 |
parents | 73496cbd3e25 |
children | a5c1760f09c3 ebfb2856c8e6 |
files | lispref/display.texi |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/display.texi Sun Jun 26 00:03:39 2005 +0000 +++ b/lispref/display.texi Sun Jun 26 00:05:46 2005 +0000 @@ -1628,12 +1628,12 @@ @cindex face id Each face has its own @dfn{face number}, which distinguishes faces at low levels within Emacs. However, for most purposes, you refer to -faces in Lisp programs by their names. +faces in Lisp programs by the symbol that names them. @defun facep object -This function returns @code{t} if @var{object} is a face name symbol (or -if it is a vector of the kind used internally to record face data). It -returns @code{nil} otherwise. +This function returns @code{t} if @var{object} is a face name string +or symbol (or if it is a vector of the kind used internally to record +face data). It returns @code{nil} otherwise. @end defun Each face name is meaningful for all frames, and by default it has the @@ -1795,7 +1795,7 @@ The way to define a new face is with @code{defface}. This creates a kind of customization item (@pxref{Customization}) which the user can customize using the Customization buffer (@pxref{Easy Customization,,, -emacs, The GNU Emacs Manual}). +emacs, The GNU Emacs Manual}). @defmac defface face spec doc [keyword value]... This declares @var{face} as a customizable face that defaults