aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-26 10:58:15 +0000
committerRichard M. Stallman2005-04-26 10:58:15 +0000
commit2c705f25481eb44b9eb33b414528f0f2856ffc99 (patch)
tree0a5ad40aba816605a21051b30dda0e8a40c863cb
parente54eeb44427f50be3d2654cb17297b7d92922b72 (diff)
downloademacs-2c705f25481eb44b9eb33b414528f0f2856ffc99.tar.gz
emacs-2c705f25481eb44b9eb33b414528f0f2856ffc99.zip
(Defining Faces): Document `default' elements of defface spec.
-rw-r--r--lispref/display.texi32
1 files changed, 21 insertions, 11 deletions
diff --git a/lispref/display.texi b/lispref/display.texi
index d5a28b0a0cc..d43c56d9046 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -1800,19 +1800,28 @@ When @code{defface} executes, it defines the face according to
1800init file (@pxref{Init File}) to override that specification. 1800init file (@pxref{Init File}) to override that specification.
1801 1801
1802The purpose of @var{spec} is to specify how the face should appear on 1802The purpose of @var{spec} is to specify how the face should appear on
1803different kinds of terminals. It should be an alist whose elements have 1803different kinds of terminals. It should be an alist whose elements
1804the form @code{(@var{display} @var{atts})}. Each element's @sc{car}, 1804have the form @code{(@var{display} @var{atts})}. Each element's
1805@var{display}, specifies a class of terminals. The element's second element, 1805@sc{car}, @var{display}, specifies a class of terminals. (The first
1806@var{atts}, is a list of face attributes and their values; it specifies 1806element, if it s @sc{car} is @code{default}, is special---it specifies
1807what the face should look like on that kind of terminal. The possible 1807defaults for the remaining elements). The element's @sc{cadr},
1808attributes are defined in the value of @code{custom-face-attributes}. 1808@var{atts}, is a list of face attributes and their values; it
1809specifies what the face should look like on that kind of terminal.
1810The possible attributes are defined in the value of
1811@code{custom-face-attributes}.
1809 1812
1810The @var{display} part of an element of @var{spec} determines which 1813The @var{display} part of an element of @var{spec} determines which
1811frames the element applies to. If more than one element of @var{spec} 1814frames the element matches. If more than one element of @var{spec}
1812matches a given frame, the first matching element is the only one used 1815matches a given frame, the first element that matches is the one used
1813for that frame. There are two possibilities for @var{display}: 1816for that frame. There are three possibilities for @var{display}:
1814 1817
1815@table @asis 1818@table @asis
1819@item @code{default}
1820This element of @var{spec} doesn't match any frames; instead, it
1821specifies defaults that apply to all frames. This kind of element, if
1822used, must be the first element of @var{spec}. Each of the following
1823elements can override any or all of these defaults.
1824
1816@item @code{t} 1825@item @code{t}
1817This element of @var{spec} matches all frames. Therefore, any 1826This element of @var{spec} matches all frames. Therefore, any
1818subsequent elements of @var{spec} are never used. Normally 1827subsequent elements of @var{spec} are never used. Normally
@@ -1840,8 +1849,9 @@ What kinds of colors the frame supports---either @code{color},
1840The kind of background---either @code{light} or @code{dark}. 1849The kind of background---either @code{light} or @code{dark}.
1841 1850
1842@item min-colors 1851@item min-colors
1843An integer that represents the minimum number of colors the frame should 1852An integer that represents the minimum number of colors the frame
1844support, it is compared with the result of @code{display-color-cells}. 1853should support. This matches a frame if its
1854@code{display-color-cells} value is at least the specified integer.
1845 1855
1846@item supports 1856@item supports
1847Whether or not the frame can display the face attributes given in 1857Whether or not the frame can display the face attributes given in