aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2008-09-20 20:25:05 +0000
committerGlenn Morris2008-09-20 20:25:05 +0000
commit15688fceeb6b39830ab6bc761ad32678bf745e9e (patch)
tree82fd647f58899f5a262e436a3d8c257673998518 /doc
parent8230b7b3a110f388ee09873a8726f5a465d53abf (diff)
downloademacs-15688fceeb6b39830ab6bc761ad32678bf745e9e.tar.gz
emacs-15688fceeb6b39830ab6bc761ad32678bf745e9e.zip
(Defining Faces): Recommend against face variables.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/display.texi5
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 44da8528114..971ac598891 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12008-09-20 Glenn Morris <rgm@gnu.org>
2
3 * display.texi (Defining Faces): Recommend against face variables.
4
12008-09-16 Juanma Barranquero <lekktu@gmail.com> 52008-09-16 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * display.texi (Echo Area Customization): Fix typo. 7 * display.texi (Echo Area Customization): Fix typo.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 4e154f7f263..01e869234fb 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -1803,6 +1803,11 @@ kind of customization item (@pxref{Customization}) which the user can
1803customize using the Customization buffer (@pxref{Easy Customization,,, 1803customize using the Customization buffer (@pxref{Easy Customization,,,
1804emacs, The GNU Emacs Manual}). 1804emacs, The GNU Emacs Manual}).
1805 1805
1806 People are sometimes tempted to create variables whose values specify
1807which faces to use (for example, Font-Lock does this). In the vast
1808majority of cases, this is not necessary, and simply using faces
1809directly is preferable.
1810
1806@defmac defface face spec doc [keyword value]@dots{} 1811@defmac defface face spec doc [keyword value]@dots{}
1807This declares @var{face} as a customizable face that defaults 1812This declares @var{face} as a customizable face that defaults
1808according to @var{spec}. You should not quote the symbol @var{face}, 1813according to @var{spec}. You should not quote the symbol @var{face},