diff options
| author | Richard M. Stallman | 2005-06-23 21:46:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-06-23 21:46:06 +0000 |
| commit | 43d08eb98803406321bead4267823575443fc405 (patch) | |
| tree | 8fed969bfa3f8149f21ba9ed43b235b66244cd7b | |
| parent | 470a11a34525f26c3e403886d7d1c2aecf8300f3 (diff) | |
| download | emacs-43d08eb98803406321bead4267823575443fc405.tar.gz emacs-43d08eb98803406321bead4267823575443fc405.zip | |
(Text Display): Renamed show-nonbreak-escape
to nobreak-char-display and no-break-space to nobreak-space.
(Standard Faces): Split up the list of standard faces
and put it in a separate node.
Add nobreak-space and escape-glyph.
| -rw-r--r-- | man/display.texi | 146 |
1 files changed, 85 insertions, 61 deletions
diff --git a/man/display.texi b/man/display.texi index 9cc2bfa2a03..7bdd1d5fb59 100644 --- a/man/display.texi +++ b/man/display.texi | |||
| @@ -12,6 +12,7 @@ display it. | |||
| 12 | 12 | ||
| 13 | @menu | 13 | @menu |
| 14 | * Faces:: How to change the display style using faces. | 14 | * Faces:: How to change the display style using faces. |
| 15 | * Standard Faces:: Emacs' predefined faces. | ||
| 15 | * Font Lock:: Minor mode for syntactic highlighting using faces. | 16 | * Font Lock:: Minor mode for syntactic highlighting using faces. |
| 16 | * Highlight Changes:: Using colors to show where you changed the buffer. | 17 | * Highlight Changes:: Using colors to show where you changed the buffer. |
| 17 | * Highlight Interactively:: Tell Emacs what text to highlight. | 18 | * Highlight Interactively:: Tell Emacs what text to highlight. |
| @@ -44,6 +45,12 @@ terminals support inverse video, bold, and underline attributes; some | |||
| 44 | support colors. Character terminals generally do not support changing | 45 | support colors. Character terminals generally do not support changing |
| 45 | the height and width or the font family. | 46 | the height and width or the font family. |
| 46 | 47 | ||
| 48 | The easiest way to use faces is to turn on Font Lock mode. | ||
| 49 | @xref{Font Lock}, for more information about Font Lock mode and | ||
| 50 | syntactic highlighting. You can print out the buffer with the | ||
| 51 | highlighting that appears on your screen using the command | ||
| 52 | @code{ps-print-buffer-with-faces}. @xref{PostScript}. | ||
| 53 | |||
| 47 | Features which rely on text in multiple faces (such as Font Lock mode) | 54 | Features which rely on text in multiple faces (such as Font Lock mode) |
| 48 | will also work on non-windowed terminals that can display more than one | 55 | will also work on non-windowed terminals that can display more than one |
| 49 | face, whether by colors or underlining and emboldening. This includes | 56 | face, whether by colors or underlining and emboldening. This includes |
| @@ -90,21 +97,88 @@ fonts for editing program source code. Filling will sometimes make | |||
| 90 | lines too long or too short. We plan to address these issues in | 97 | lines too long or too short. We plan to address these issues in |
| 91 | future Emacs versions. | 98 | future Emacs versions. |
| 92 | 99 | ||
| 100 | @node Standard Faces | ||
| 101 | @section Standard Faces | ||
| 102 | |||
| 93 | @findex list-faces-display | 103 | @findex list-faces-display |
| 94 | To see what faces are currently defined, and what they look like, type | 104 | To see what faces are currently defined, and what they look like, |
| 95 | @kbd{M-x list-faces-display}. It's possible for a given face to look | 105 | type @kbd{M-x list-faces-display}. It's possible for a given face to |
| 96 | different in different frames; this command shows the appearance in the | 106 | look different in different frames; this command shows the appearance |
| 97 | frame in which you type it. Here's a list of the standard defined | 107 | in the frame in which you type it. Here are the standard faces |
| 98 | faces: | 108 | for specifying text appearance: |
| 99 | 109 | ||
| 100 | @table @code | 110 | @table @code |
| 101 | @item default | 111 | @item default |
| 102 | This face is used for ordinary text that doesn't specify any other face. | 112 | This face is used for ordinary text that doesn't specify any other face. |
| 113 | @item bold | ||
| 114 | This face uses a bold variant of the default font, if it has one. | ||
| 115 | @item italic | ||
| 116 | This face uses an italic variant of the default font, if it has one. | ||
| 117 | @item bold-italic | ||
| 118 | This face uses a bold italic variant of the default font, if it has one. | ||
| 119 | @item underline | ||
| 120 | This face underlines text. | ||
| 121 | @item fixed-pitch | ||
| 122 | The basic fixed-pitch face. | ||
| 123 | @item variable-pitch | ||
| 124 | The basic variable-pitch face. | ||
| 125 | @end table | ||
| 126 | |||
| 127 | Here's an incomplete list of faces used to highlight parts of the | ||
| 128 | text temporarily for specific purposes. (Many other modes define | ||
| 129 | their own faces for this purpose.) | ||
| 130 | |||
| 131 | @table @code | ||
| 132 | @item highlight | ||
| 133 | This face is used for highlighting portions of text, in various modes. | ||
| 134 | For example, mouse-sensitive text is highlighted using this face. | ||
| 135 | @item mode-line-highlight | ||
| 136 | Like @code{highlight}, but used for portions of text on mode lines. | ||
| 137 | @item isearch | ||
| 138 | This face is used for highlighting Isearch matches. | ||
| 139 | @item lazy-highlight | ||
| 140 | This face is used for lazy highlighting of Isearch and Query Replace | ||
| 141 | matches other than the current one. | ||
| 142 | @item region | ||
| 143 | This face is used for displaying a selected region (when Transient Mark | ||
| 144 | mode is enabled---see below). | ||
| 145 | @item secondary-selection | ||
| 146 | This face is used for displaying a secondary X selection (@pxref{Secondary | ||
| 147 | Selection}). | ||
| 148 | @item trailing-whitespace | ||
| 149 | The face for highlighting trailing whitespace when | ||
| 150 | @code{show-trailing-whitespace} is non-@code{nil}; see @ref{Useless | ||
| 151 | Whitespace}. | ||
| 152 | @item nobreak-space | ||
| 153 | The face for displaying the character ``nobreak space''. | ||
| 154 | @item escape-glyph | ||
| 155 | The face for highlighting the @samp{\} or @samp{^} that indicates | ||
| 156 | a control character. It's also used when @samp{\} indicates a | ||
| 157 | nobreak space or nobreak (soft) hyphen. | ||
| 158 | @item shadow | ||
| 159 | The basic face for making the text less noticeable than the surrounding | ||
| 160 | ordinary text. Usually this is achieved by using shades of grey in | ||
| 161 | contrast with either black or white default foreground color. | ||
| 162 | @end table | ||
| 163 | |||
| 164 | @cindex @code{region} face | ||
| 165 | When Transient Mark mode is enabled, the text of the region is | ||
| 166 | highlighted when the mark is active. This uses the face named | ||
| 167 | @code{region}; you can control the style of highlighting by changing the | ||
| 168 | style of this face (@pxref{Face Customization}). @xref{Transient Mark}, | ||
| 169 | for more information about Transient Mark mode and activation and | ||
| 170 | deactivation of the mark. | ||
| 171 | |||
| 172 | These faces control the appearance of parts of the Emacs frame. | ||
| 173 | They exist as faces to provide a consistent way to customize the | ||
| 174 | appearance of these parts of the frame. | ||
| 175 | |||
| 176 | @table @code | ||
| 103 | @item mode-line | 177 | @item mode-line |
| 104 | This face is used for the mode line of the currently selected window. | 178 | This face is used for the mode line of the currently selected window. |
| 105 | By default, it's drawn with shadows for a ``raised'' effect on window | 179 | By default, it's drawn with shadows for a ``raised'' effect on window |
| 106 | systems, and drawn as the inverse of the default face on non-windowed | 180 | systems, and drawn as the inverse of the default face on non-windowed |
| 107 | terminals. @xref{Display Custom}. | 181 | terminals. |
| 108 | @item mode-line-inactive | 182 | @item mode-line-inactive |
| 109 | Like @code{mode-line}, but used for mode lines of the windows other | 183 | Like @code{mode-line}, but used for mode lines of the windows other |
| 110 | than the selected one (if @code{mode-line-in-non-selected-windows} is | 184 | than the selected one (if @code{mode-line-in-non-selected-windows} is |
| @@ -119,39 +193,15 @@ character terminals. By default this face inherits from the | |||
| 119 | @code{mode-line-inactive} face. | 193 | @code{mode-line-inactive} face. |
| 120 | @item minibuffer-prompt | 194 | @item minibuffer-prompt |
| 121 | This face is used for the prompt strings displayed in the minibuffer. | 195 | This face is used for the prompt strings displayed in the minibuffer. |
| 122 | @item highlight | ||
| 123 | This face is used for highlighting portions of text, in various modes. | ||
| 124 | For example, mouse-sensitive text is highlighted using this face. | ||
| 125 | @item mode-line-highlight | ||
| 126 | Like @code{highlight}, but used for portions of text on mode lines. | ||
| 127 | @item isearch | ||
| 128 | This face is used for highlighting Isearch matches. | ||
| 129 | @item lazy-highlight | ||
| 130 | This face is used for lazy highlighting of Isearch and Query Replace | ||
| 131 | matches other than the current one. | ||
| 132 | @item region | ||
| 133 | This face is used for displaying a selected region (when Transient Mark | ||
| 134 | mode is enabled---see below). | ||
| 135 | @item secondary-selection | ||
| 136 | This face is used for displaying a secondary X selection (@pxref{Secondary | ||
| 137 | Selection}). | ||
| 138 | @item bold | ||
| 139 | This face uses a bold variant of the default font, if it has one. | ||
| 140 | @item italic | ||
| 141 | This face uses an italic variant of the default font, if it has one. | ||
| 142 | @item bold-italic | ||
| 143 | This face uses a bold italic variant of the default font, if it has one. | ||
| 144 | @item underline | ||
| 145 | This face underlines text. | ||
| 146 | @item fixed-pitch | ||
| 147 | The basic fixed-pitch face. | ||
| 148 | @item fringe | 196 | @item fringe |
| 149 | @cindex fringe | 197 | @cindex fringe |
| 150 | The face for the fringes to the left and right of windows on graphic | 198 | The face for the fringes to the left and right of windows on graphic |
| 151 | displays. (The fringes are the narrow portions of the Emacs frame | 199 | displays. (The fringes are the narrow portions of the Emacs frame |
| 152 | between the text area and the window's right and left borders.) | 200 | between the text area and the window's right and left borders.) |
| 201 | @xref{Fringes}. | ||
| 153 | @item scroll-bar | 202 | @item scroll-bar |
| 154 | This face determines the visual appearance of the scroll bar. | 203 | This face determines the visual appearance of the scroll bar. |
| 204 | @xref{Scroll Bars}. | ||
| 155 | @item border | 205 | @item border |
| 156 | This face determines the color of the frame border. | 206 | This face determines the color of the frame border. |
| 157 | @item cursor | 207 | @item cursor |
| @@ -160,41 +210,15 @@ This face determines the color of the cursor. | |||
| 160 | This face determines the color of the mouse pointer. | 210 | This face determines the color of the mouse pointer. |
| 161 | @item tool-bar | 211 | @item tool-bar |
| 162 | This is the basic tool-bar face. No text appears in the tool bar, but the | 212 | This is the basic tool-bar face. No text appears in the tool bar, but the |
| 163 | colors of this face affect the appearance of tool bar icons. | 213 | colors of this face affect the appearance of tool bar icons. @xref{Tool Bars}. |
| 164 | @item tooltip | 214 | @item tooltip |
| 165 | This face is used for tooltips. | 215 | This face is used for tooltips. @xref{Tooltips}. |
| 166 | @item menu | 216 | @item menu |
| 167 | This face determines the colors and font of Emacs's menus. Setting the | 217 | This face determines the colors and font of Emacs's menus. Setting the |
| 168 | font of LessTif/Motif menus is currently not supported; attempts to set | 218 | font of LessTif/Motif menus is currently not supported; attempts to set |
| 169 | the font are ignored in this case. | 219 | the font are ignored in this case. @xref{Menu Bars}. |
| 170 | @item trailing-whitespace | ||
| 171 | The face for highlighting trailing whitespace when | ||
| 172 | @code{show-trailing-whitespace} is non-@code{nil}; see @ref{Useless | ||
| 173 | Whitespace}. | ||
| 174 | @item variable-pitch | ||
| 175 | The basic variable-pitch face. | ||
| 176 | @item shadow | ||
| 177 | The basic face for making the text less noticeable than the surrounding | ||
| 178 | ordinary text. Usually this is achieved by using shades of grey in | ||
| 179 | contrast with either black or white default foreground color. | ||
| 180 | @end table | 220 | @end table |
| 181 | 221 | ||
| 182 | @cindex @code{region} face | ||
| 183 | When Transient Mark mode is enabled, the text of the region is | ||
| 184 | highlighted when the mark is active. This uses the face named | ||
| 185 | @code{region}; you can control the style of highlighting by changing the | ||
| 186 | style of this face (@pxref{Face Customization}). @xref{Transient Mark}, | ||
| 187 | for more information about Transient Mark mode and activation and | ||
| 188 | deactivation of the mark. | ||
| 189 | |||
| 190 | One easy way to use faces is to turn on Font Lock mode. @xref{Font | ||
| 191 | Lock}, for more information about Font Lock mode and syntactic | ||
| 192 | highlighting. | ||
| 193 | |||
| 194 | You can print out the buffer with the highlighting that appears | ||
| 195 | on your screen using the command @code{ps-print-buffer-with-faces}. | ||
| 196 | @xref{PostScript}. | ||
| 197 | |||
| 198 | @node Font Lock | 222 | @node Font Lock |
| 199 | @section Font Lock mode | 223 | @section Font Lock mode |
| 200 | @cindex Font Lock mode | 224 | @cindex Font Lock mode |