comparison lispref/display.texi @ 90199:bb71c6cf2009

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-67 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 447-458) - Update from CVS - Update from CVS: lisp/subr.el (add-to-ordered-list): Doc fix. - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 83-85) - Merge from emacs--cvs-trunk--0 - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 30 Jun 2005 00:31:46 +0000
parents 97f6c3a96df1 a750e72f48e7
children f9a65d7ebd29
comparison
equal deleted inserted replaced
90198:97f6c3a96df1 90199:bb71c6cf2009
1626 particular parts of the text or the frame. 1626 particular parts of the text or the frame.
1627 1627
1628 @cindex face id 1628 @cindex face id
1629 Each face has its own @dfn{face number}, which distinguishes faces at 1629 Each face has its own @dfn{face number}, which distinguishes faces at
1630 low levels within Emacs. However, for most purposes, you refer to 1630 low levels within Emacs. However, for most purposes, you refer to
1631 faces in Lisp programs by their names. 1631 faces in Lisp programs by the symbols that name them.
1632 1632
1633 @defun facep object 1633 @defun facep object
1634 This function returns @code{t} if @var{object} is a face name symbol (or 1634 This function returns @code{t} if @var{object} is a face name string
1635 if it is a vector of the kind used internally to record face data). It 1635 or symbol (or if it is a vector of the kind used internally to record
1636 returns @code{nil} otherwise. 1636 face data). It returns @code{nil} otherwise.
1637 @end defun 1637 @end defun
1638 1638
1639 Each face name is meaningful for all frames, and by default it has the 1639 Each face name is meaningful for all frames, and by default it has the
1640 same meaning in all frames. But you can arrange to give a particular 1640 same meaning in all frames. But you can arrange to give a particular
1641 face name a special meaning in one frame if you wish. 1641 face name a special meaning in one frame if you wish.
1793 @subsection Defining Faces 1793 @subsection Defining Faces
1794 1794
1795 The way to define a new face is with @code{defface}. This creates a 1795 The way to define a new face is with @code{defface}. This creates a
1796 kind of customization item (@pxref{Customization}) which the user can 1796 kind of customization item (@pxref{Customization}) which the user can
1797 customize using the Customization buffer (@pxref{Easy Customization,,, 1797 customize using the Customization buffer (@pxref{Easy Customization,,,
1798 emacs, The GNU Emacs Manual}). 1798 emacs, The GNU Emacs Manual}).
1799 1799
1800 @defmac defface face spec doc [keyword value]... 1800 @defmac defface face spec doc [keyword value]...
1801 This declares @var{face} as a customizable face that defaults 1801 This declares @var{face} as a customizable face that defaults
1802 according to @var{spec}. You should not quote the symbol @var{face}, 1802 according to @var{spec}. You should not quote the symbol @var{face},
1803 and it should not end in @samp{-face} (that would be redundant). The 1803 and it should not end in @samp{-face} (that would be redundant). The