219 |
|
|
220 |
@kbd{M-%} typed in incremental search invokes @code{query-replace} |
@kbd{M-%} typed in incremental search invokes @code{query-replace} |
221 |
or @code{query-replace-regexp} (depending on search mode) with the |
or @code{query-replace-regexp} (depending on search mode) with the |
222 |
current search string used as the string to replace. |
current search string used as the string to replace. @xref{Query |
223 |
|
Replace}. |
224 |
|
|
225 |
@cindex lazy search highlighting |
@cindex lazy search highlighting |
226 |
@vindex isearch-lazy-highlight |
@vindex isearch-lazy-highlight |
232 |
If you don't like this feature, you can turn it off by setting |
If you don't like this feature, you can turn it off by setting |
233 |
@code{isearch-lazy-highlight} to @code{nil}. |
@code{isearch-lazy-highlight} to @code{nil}. |
234 |
|
|
|
@vindex isearch-lazy-highlight-face |
|
235 |
@cindex faces for highlighting search matches |
@cindex faces for highlighting search matches |
236 |
You can control how this highlighting looks by customizing the faces |
You can control how this highlighting looks by customizing the faces |
237 |
@code{isearch} (used for the current match) and |
@code{isearch} (used for the current match) and @code{lazy-highlight} |
238 |
@code{isearch-lazy-highlight-face} (for all the other matches). |
(for all the other matches). The latter is also used for other matches |
239 |
|
inside @code{query-replace}. |
240 |
|
|
241 |
@vindex isearch-mode-map |
@vindex isearch-mode-map |
242 |
To customize the special characters that incremental search understands, |
To customize the special characters that incremental search understands, |
1154 |
@kindex C-M-% |
@kindex C-M-% |
1155 |
@findex query-replace-regexp |
@findex query-replace-regexp |
1156 |
@kbd{C-M-%} performs regexp search and replace (@code{query-replace-regexp}). |
@kbd{C-M-%} performs regexp search and replace (@code{query-replace-regexp}). |
1157 |
|
It works like @code{replace-regexp} except that it queries |
1158 |
|
like @code{query-replace}. |
1159 |
|
|
1160 |
|
@cindex faces for highlighting query replace |
1161 |
|
These commands highlight the current match using the face |
1162 |
|
@code{query-replace}. They highlight other matches using |
1163 |
|
@code{lazy-highlight} just like incremental search (@pxref{Incremental |
1164 |
|
Search}). |
1165 |
|
|
1166 |
The characters you can type when you are shown a match for the string |
The characters you can type when you are shown a match for the string |
1167 |
or regexp are: |
or regexp are: |