diff options
| author | Richard M. Stallman | 2005-04-26 10:58:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-26 10:58:15 +0000 |
| commit | 2c705f25481eb44b9eb33b414528f0f2856ffc99 (patch) | |
| tree | 0a5ad40aba816605a21051b30dda0e8a40c863cb | |
| parent | e54eeb44427f50be3d2654cb17297b7d92922b72 (diff) | |
| download | emacs-2c705f25481eb44b9eb33b414528f0f2856ffc99.tar.gz emacs-2c705f25481eb44b9eb33b414528f0f2856ffc99.zip | |
(Defining Faces): Document `default' elements of defface spec.
| -rw-r--r-- | lispref/display.texi | 32 |
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 | |||
| 1800 | init file (@pxref{Init File}) to override that specification. | 1800 | init file (@pxref{Init File}) to override that specification. |
| 1801 | 1801 | ||
| 1802 | The purpose of @var{spec} is to specify how the face should appear on | 1802 | The purpose of @var{spec} is to specify how the face should appear on |
| 1803 | different kinds of terminals. It should be an alist whose elements have | 1803 | different kinds of terminals. It should be an alist whose elements |
| 1804 | the form @code{(@var{display} @var{atts})}. Each element's @sc{car}, | 1804 | have 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 | 1806 | element, if it s @sc{car} is @code{default}, is special---it specifies |
| 1807 | what the face should look like on that kind of terminal. The possible | 1807 | defaults for the remaining elements). The element's @sc{cadr}, |
| 1808 | attributes are defined in the value of @code{custom-face-attributes}. | 1808 | @var{atts}, is a list of face attributes and their values; it |
| 1809 | specifies what the face should look like on that kind of terminal. | ||
| 1810 | The possible attributes are defined in the value of | ||
| 1811 | @code{custom-face-attributes}. | ||
| 1809 | 1812 | ||
| 1810 | The @var{display} part of an element of @var{spec} determines which | 1813 | The @var{display} part of an element of @var{spec} determines which |
| 1811 | frames the element applies to. If more than one element of @var{spec} | 1814 | frames the element matches. If more than one element of @var{spec} |
| 1812 | matches a given frame, the first matching element is the only one used | 1815 | matches a given frame, the first element that matches is the one used |
| 1813 | for that frame. There are two possibilities for @var{display}: | 1816 | for that frame. There are three possibilities for @var{display}: |
| 1814 | 1817 | ||
| 1815 | @table @asis | 1818 | @table @asis |
| 1819 | @item @code{default} | ||
| 1820 | This element of @var{spec} doesn't match any frames; instead, it | ||
| 1821 | specifies defaults that apply to all frames. This kind of element, if | ||
| 1822 | used, must be the first element of @var{spec}. Each of the following | ||
| 1823 | elements can override any or all of these defaults. | ||
| 1824 | |||
| 1816 | @item @code{t} | 1825 | @item @code{t} |
| 1817 | This element of @var{spec} matches all frames. Therefore, any | 1826 | This element of @var{spec} matches all frames. Therefore, any |
| 1818 | subsequent elements of @var{spec} are never used. Normally | 1827 | subsequent elements of @var{spec} are never used. Normally |
| @@ -1840,8 +1849,9 @@ What kinds of colors the frame supports---either @code{color}, | |||
| 1840 | The kind of background---either @code{light} or @code{dark}. | 1849 | The kind of background---either @code{light} or @code{dark}. |
| 1841 | 1850 | ||
| 1842 | @item min-colors | 1851 | @item min-colors |
| 1843 | An integer that represents the minimum number of colors the frame should | 1852 | An integer that represents the minimum number of colors the frame |
| 1844 | support, it is compared with the result of @code{display-color-cells}. | 1853 | should 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 |
| 1847 | Whether or not the frame can display the face attributes given in | 1857 | Whether or not the frame can display the face attributes given in |