Commit c3bf675d authored by Luc Teirlinck's avatar Luc Teirlinck
Browse files

(Faces): `facep' returns t for strings that are face names.

parent 33b79ce4
...@@ -1628,12 +1628,12 @@ particular parts of the text or the frame. ...@@ -1628,12 +1628,12 @@ particular parts of the text or the frame.
@cindex face id @cindex face id
Each face has its own @dfn{face number}, which distinguishes faces at Each face has its own @dfn{face number}, which distinguishes faces at
low levels within Emacs. However, for most purposes, you refer to 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 @defun facep object
This function returns @code{t} if @var{object} is a face name symbol (or This function returns @code{t} if @var{object} is a face name string
if it is a vector of the kind used internally to record face data). It or symbol (or if it is a vector of the kind used internally to record
returns @code{nil} otherwise. face data). It returns @code{nil} otherwise.
@end defun @end defun
Each face name is meaningful for all frames, and by default it has the Each face name is meaningful for all frames, and by default it has the
...@@ -1795,7 +1795,7 @@ end of a line. ...@@ -1795,7 +1795,7 @@ end of a line.
The way to define a new face is with @code{defface}. This creates a The way to define a new face is with @code{defface}. This creates a
kind of customization item (@pxref{Customization}) which the user can kind of customization item (@pxref{Customization}) which the user can
customize using the Customization buffer (@pxref{Easy Customization,,, 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]... @defmac defface face spec doc [keyword value]...
This declares @var{face} as a customizable face that defaults This declares @var{face} as a customizable face that defaults
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment