aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-06-23 21:46:06 +0000
committerRichard M. Stallman2005-06-23 21:46:06 +0000
commit43d08eb98803406321bead4267823575443fc405 (patch)
tree8fed969bfa3f8149f21ba9ed43b235b66244cd7b
parent470a11a34525f26c3e403886d7d1c2aecf8300f3 (diff)
downloademacs-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.texi146
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
44support colors. Character terminals generally do not support changing 45support colors. Character terminals generally do not support changing
45the height and width or the font family. 46the 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
50syntactic highlighting. You can print out the buffer with the
51highlighting 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)
48will also work on non-windowed terminals that can display more than one 55will also work on non-windowed terminals that can display more than one
49face, whether by colors or underlining and emboldening. This includes 56face, whether by colors or underlining and emboldening. This includes
@@ -90,21 +97,88 @@ fonts for editing program source code. Filling will sometimes make
90lines too long or too short. We plan to address these issues in 97lines too long or too short. We plan to address these issues in
91future Emacs versions. 98future 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 105type @kbd{M-x list-faces-display}. It's possible for a given face to
96different in different frames; this command shows the appearance in the 106look different in different frames; this command shows the appearance
97frame in which you type it. Here's a list of the standard defined 107in the frame in which you type it. Here are the standard faces
98faces: 108for specifying text appearance:
99 109
100@table @code 110@table @code
101@item default 111@item default
102This face is used for ordinary text that doesn't specify any other face. 112This face is used for ordinary text that doesn't specify any other face.
113@item bold
114This face uses a bold variant of the default font, if it has one.
115@item italic
116This face uses an italic variant of the default font, if it has one.
117@item bold-italic
118This face uses a bold italic variant of the default font, if it has one.
119@item underline
120This face underlines text.
121@item fixed-pitch
122The basic fixed-pitch face.
123@item variable-pitch
124The basic variable-pitch face.
125@end table
126
127 Here's an incomplete list of faces used to highlight parts of the
128text temporarily for specific purposes. (Many other modes define
129their own faces for this purpose.)
130
131@table @code
132@item highlight
133This face is used for highlighting portions of text, in various modes.
134For example, mouse-sensitive text is highlighted using this face.
135@item mode-line-highlight
136Like @code{highlight}, but used for portions of text on mode lines.
137@item isearch
138This face is used for highlighting Isearch matches.
139@item lazy-highlight
140This face is used for lazy highlighting of Isearch and Query Replace
141matches other than the current one.
142@item region
143This face is used for displaying a selected region (when Transient Mark
144mode is enabled---see below).
145@item secondary-selection
146This face is used for displaying a secondary X selection (@pxref{Secondary
147Selection}).
148@item trailing-whitespace
149The face for highlighting trailing whitespace when
150@code{show-trailing-whitespace} is non-@code{nil}; see @ref{Useless
151Whitespace}.
152@item nobreak-space
153The face for displaying the character ``nobreak space''.
154@item escape-glyph
155The face for highlighting the @samp{\} or @samp{^} that indicates
156a control character. It's also used when @samp{\} indicates a
157nobreak space or nobreak (soft) hyphen.
158@item shadow
159The basic face for making the text less noticeable than the surrounding
160ordinary text. Usually this is achieved by using shades of grey in
161contrast 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
166highlighted when the mark is active. This uses the face named
167@code{region}; you can control the style of highlighting by changing the
168style of this face (@pxref{Face Customization}). @xref{Transient Mark},
169for more information about Transient Mark mode and activation and
170deactivation of the mark.
171
172 These faces control the appearance of parts of the Emacs frame.
173They exist as faces to provide a consistent way to customize the
174appearance of these parts of the frame.
175
176@table @code
103@item mode-line 177@item mode-line
104This face is used for the mode line of the currently selected window. 178This face is used for the mode line of the currently selected window.
105By default, it's drawn with shadows for a ``raised'' effect on window 179By default, it's drawn with shadows for a ``raised'' effect on window
106systems, and drawn as the inverse of the default face on non-windowed 180systems, and drawn as the inverse of the default face on non-windowed
107terminals. @xref{Display Custom}. 181terminals.
108@item mode-line-inactive 182@item mode-line-inactive
109Like @code{mode-line}, but used for mode lines of the windows other 183Like @code{mode-line}, but used for mode lines of the windows other
110than the selected one (if @code{mode-line-in-non-selected-windows} is 184than 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
121This face is used for the prompt strings displayed in the minibuffer. 195This face is used for the prompt strings displayed in the minibuffer.
122@item highlight
123This face is used for highlighting portions of text, in various modes.
124For example, mouse-sensitive text is highlighted using this face.
125@item mode-line-highlight
126Like @code{highlight}, but used for portions of text on mode lines.
127@item isearch
128This face is used for highlighting Isearch matches.
129@item lazy-highlight
130This face is used for lazy highlighting of Isearch and Query Replace
131matches other than the current one.
132@item region
133This face is used for displaying a selected region (when Transient Mark
134mode is enabled---see below).
135@item secondary-selection
136This face is used for displaying a secondary X selection (@pxref{Secondary
137Selection}).
138@item bold
139This face uses a bold variant of the default font, if it has one.
140@item italic
141This face uses an italic variant of the default font, if it has one.
142@item bold-italic
143This face uses a bold italic variant of the default font, if it has one.
144@item underline
145This face underlines text.
146@item fixed-pitch
147The basic fixed-pitch face.
148@item fringe 196@item fringe
149@cindex fringe 197@cindex fringe
150The face for the fringes to the left and right of windows on graphic 198The face for the fringes to the left and right of windows on graphic
151displays. (The fringes are the narrow portions of the Emacs frame 199displays. (The fringes are the narrow portions of the Emacs frame
152between the text area and the window's right and left borders.) 200between the text area and the window's right and left borders.)
201@xref{Fringes}.
153@item scroll-bar 202@item scroll-bar
154This face determines the visual appearance of the scroll bar. 203This face determines the visual appearance of the scroll bar.
204@xref{Scroll Bars}.
155@item border 205@item border
156This face determines the color of the frame border. 206This 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.
160This face determines the color of the mouse pointer. 210This face determines the color of the mouse pointer.
161@item tool-bar 211@item tool-bar
162This is the basic tool-bar face. No text appears in the tool bar, but the 212This is the basic tool-bar face. No text appears in the tool bar, but the
163colors of this face affect the appearance of tool bar icons. 213colors of this face affect the appearance of tool bar icons. @xref{Tool Bars}.
164@item tooltip 214@item tooltip
165This face is used for tooltips. 215This face is used for tooltips. @xref{Tooltips}.
166@item menu 216@item menu
167This face determines the colors and font of Emacs's menus. Setting the 217This face determines the colors and font of Emacs's menus. Setting the
168font of LessTif/Motif menus is currently not supported; attempts to set 218font of LessTif/Motif menus is currently not supported; attempts to set
169the font are ignored in this case. 219the font are ignored in this case. @xref{Menu Bars}.
170@item trailing-whitespace
171The face for highlighting trailing whitespace when
172@code{show-trailing-whitespace} is non-@code{nil}; see @ref{Useless
173Whitespace}.
174@item variable-pitch
175The basic variable-pitch face.
176@item shadow
177The basic face for making the text less noticeable than the surrounding
178ordinary text. Usually this is achieved by using shades of grey in
179contrast 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
184highlighted when the mark is active. This uses the face named
185@code{region}; you can control the style of highlighting by changing the
186style of this face (@pxref{Face Customization}). @xref{Transient Mark},
187for more information about Transient Mark mode and activation and
188deactivation of the mark.
189
190 One easy way to use faces is to turn on Font Lock mode. @xref{Font
191Lock}, for more information about Font Lock mode and syntactic
192highlighting.
193
194 You can print out the buffer with the highlighting that appears
195on 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