Mercurial > emacs
diff doc/lispref/display.texi @ 98267:559b4f23d84b
(Defining Faces): Recommend against face variables.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 20 Sep 2008 20:24:57 +0000 |
parents | c9d121831418 |
children | c5da883d1e87 |
line wrap: on
line diff
--- a/doc/lispref/display.texi Sat Sep 20 20:16:29 2008 +0000 +++ b/doc/lispref/display.texi Sat Sep 20 20:24:57 2008 +0000 @@ -1803,6 +1803,11 @@ customize using the Customization buffer (@pxref{Easy Customization,,, emacs, The GNU Emacs Manual}). + People are sometimes tempted to create variables whose values specify +which faces to use (for example, Font-Lock does this). In the vast +majority of cases, this is not necessary, and simply using faces +directly is preferable. + @defmac defface face spec doc [keyword value]@dots{} This declares @var{face} as a customizable face that defaults according to @var{spec}. You should not quote the symbol @var{face},