Mercurial > emacs
comparison man/frames.texi @ 30583:c7e7209535ae
(Highlight Interactively): Document the hi-lock mode.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 04 Aug 2000 06:06:05 +0000 |
parents | b64123677c0b |
children | ddf00eb5fb12 |
comparison
equal
deleted
inserted
replaced
30582:280157ad4aa3 | 30583:c7e7209535ae |
---|---|
57 * Dialog Boxes:: Controlling use of dialog boxes. | 57 * Dialog Boxes:: Controlling use of dialog boxes. |
58 * Faces:: How to change the display style using faces. | 58 * Faces:: How to change the display style using faces. |
59 * Font Lock:: Minor mode for syntactic highlighting using faces. | 59 * Font Lock:: Minor mode for syntactic highlighting using faces. |
60 * Support Modes:: Font Lock support modes make Font Lock faster. | 60 * Support Modes:: Font Lock support modes make Font Lock faster. |
61 * Highlight Changes:: Using colors to show where you changed the buffer. | 61 * Highlight Changes:: Using colors to show where you changed the buffer. |
62 * Highlight Interactively:: Tell Emacs what text to highlight. | |
62 * Trailing Whitespace:: Showing possibly-spurious trailing whitespace. | 63 * Trailing Whitespace:: Showing possibly-spurious trailing whitespace. |
63 * Tooltips:: Showing `tooltips', AKA `ballon help' for active text. | 64 * Tooltips:: Showing `tooltips', AKA `ballon help' for active text. |
64 * Mouse Avoidance:: Moving the mouse pointer out of the way. | 65 * Mouse Avoidance:: Moving the mouse pointer out of the way. |
65 * Misc X:: Iconifying and deleting frames. | 66 * Misc X:: Iconifying and deleting frames. |
66 * Non-Window Terminals:: Multiple frames on terminals that show only one. | 67 * Non-Window Terminals:: Multiple frames on terminals that show only one. |
1123 @findex highlight-changes-mode | 1124 @findex highlight-changes-mode |
1124 Use @kbd{M-x highlight-changes-mode} to enable a minor mode | 1125 Use @kbd{M-x highlight-changes-mode} to enable a minor mode |
1125 that uses faces (colors, typically) to indicate which parts of | 1126 that uses faces (colors, typically) to indicate which parts of |
1126 the buffer were changed most recently. | 1127 the buffer were changed most recently. |
1127 | 1128 |
1129 @node Highlight Interactively | |
1130 @section Interactive Highlighting of Arbitrary Text | |
1131 | |
1132 @cindex highlighting, arbitrary text | |
1133 @cindex interactive highlighting | |
1134 Sometimes, you could need to highlight arbitrary strings in the | |
1135 buffer. For example, you might wish to see all the references to a | |
1136 certain variable in a program source file or highlight certain parts in | |
1137 a voluminous output of some program, or make certain cliches stand out. | |
1138 | |
1139 @findex hi-lock-mode | |
1140 Use the @kbd{M-x hi-lock-mode} command to turn on a minor mode that | |
1141 allows you to specify regular expressions of the text to be highlighted. | |
1142 @code{hi-lock-mode} works like Font Lock (@pxref{Font Lock}), except | |
1143 that it lets you control what parts of text are highlighted. | |
1144 @code{hi-lock-mode} provides several functions: | |
1145 | |
1146 @table @kbd | |
1147 @item C-x w h | |
1148 @kindex C-x w i | |
1149 @findex highlight-regexp | |
1150 Specify the regular expression (@pxref{Regexps}) for the parts of buffer | |
1151 text that are to be highlighted (@code{highlight-regexp}). It prompts | |
1152 for the regular expression, then for the name of the face with which to | |
1153 highlight the text that matches. | |
1154 | |
1155 @item C-x w r | |
1156 @kindex C-x w r | |
1157 @findex unhighlight-regexp | |
1158 Unhighlight @var{regexp} (@code{unhighlight-regexp}). Prompts for the | |
1159 regular expression, and will accept only one of the regexps inserted by | |
1160 other @code{hi-lock} commands. | |
1161 | |
1162 @item C-x w l | |
1163 @kindex C-x w l | |
1164 @findex highlight-lines-matching-regexp | |
1165 @cindex lines, highlighting | |
1166 @cindex highlighting lines of text | |
1167 Specify the regular expression (@pxref{Regexps}) for the lines of buffer | |
1168 text that are to be highlighted | |
1169 (@code{highlight-lines-matching-regexp}). It prompts for the regular | |
1170 expression, then for the name of the face with which to highlight the | |
1171 matching lines. | |
1172 | |
1173 @item C-x w b | |
1174 @kindex C-x w b | |
1175 @findex hi-lock-write-interactive-patterns | |
1176 This runs the @code{hi-lock-write-interactive-patterns} command which | |
1177 inserts the patterns added by @kbd{M-x highlight-regexp} and @kbd{M-x | |
1178 highlight-lines-matching-regexp} into the current buffer at point, as | |
1179 comments. These patterns will be read the next time the file is | |
1180 visited, or when the @kbd{M-x hi-lock-find-patterns} command is issued. | |
1181 | |
1182 @item C-x w i | |
1183 @kindex C-x w i | |
1184 @findex hi-lock-find-patterns | |
1185 @vindex hi-lock-exclude-modes | |
1186 Re-read patterns stored in a buffer in the format produced by @kbd{M-x | |
1187 hi-lock-write-interactive-patterns} | |
1188 (@code{hi-lock-write-interactive-patterns}. If you invoke this command | |
1189 in a buffer whose major mode is a member of the list that is the value | |
1190 of the variable @code{hi-lock-exclude-modes}, this command has no | |
1191 effect. | |
1192 @end table | |
1193 | |
1194 | |
1128 @node Trailing Whitespace | 1195 @node Trailing Whitespace |
1129 @section Trailing Whitespace | 1196 @section Trailing Whitespace |
1130 | 1197 |
1131 @cindex trailing whitespace | 1198 @cindex trailing whitespace |
1132 @cindex whitespace, trailing | 1199 @cindex whitespace, trailing |