diff options
| author | Alan Mackenzie | 2013-06-05 20:57:09 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2013-06-05 20:57:09 +0000 |
| commit | 80fa505f891b420e27f56746d41f51aa5b9d7d51 (patch) | |
| tree | dfbe3eb6e1b4f7a54ffce956f4888b30103a9a2e /doc | |
| parent | 817ebfcfde1a40283c173a87ffbe0c1f5cf7ab3a (diff) | |
| download | emacs-80fa505f891b420e27f56746d41f51aa5b9d7d51.tar.gz emacs-80fa505f891b420e27f56746d41f51aa5b9d7d51.zip | |
* isearch.el (isearch-allow-prefix): New user option.
(isearch-other-meta-char): don't exit isearch when a prefix
argument is typed whilst `isearch-allow-prefix' is non-nil.
* search.texi (Isearch Scroll): Rename to "Not Exiting Isearch".
(Net Exiting Isearch): Document new user option
`isearch-allow-prefix'.
* etc/NEWS. Entry for this change.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 16 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 40 |
3 files changed, 44 insertions, 18 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a700f225a79..f384a0639d8 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-06-05 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * search.texi (Isearch Scroll): Rename to "Not Exiting Isearch". | ||
| 4 | (Net Exiting Isearch): Document new user option | ||
| 5 | `isearch-allow-prefix'. | ||
| 6 | |||
| 1 | 2013-06-03 Juri Linkov <juri@jurta.org> | 7 | 2013-06-03 Juri Linkov <juri@jurta.org> |
| 2 | 8 | ||
| 3 | * display.texi (Highlight Interactively): Add global keybindings | 9 | * display.texi (Highlight Interactively): Add global keybindings |
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index d2ec2154024..e2d0b0eebf6 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi | |||
| @@ -396,14 +396,14 @@ Searching and Replacement | |||
| 396 | 396 | ||
| 397 | Incremental Search | 397 | Incremental Search |
| 398 | 398 | ||
| 399 | * Basic Isearch:: Basic incremental search commands. | 399 | * Basic Isearch:: Basic incremental search commands. |
| 400 | * Repeat Isearch:: Searching for the same string again. | 400 | * Repeat Isearch:: Searching for the same string again. |
| 401 | * Error in Isearch:: When your string is not found. | 401 | * Error in Isearch:: When your string is not found. |
| 402 | * Special Isearch:: Special input in incremental search. | 402 | * Special Isearch:: Special input in incremental search. |
| 403 | * Isearch Yank:: Commands that grab text into the search string | 403 | * Isearch Yank:: Commands that grab text into the search string |
| 404 | or else edit the search string. | 404 | or else edit the search string. |
| 405 | * Isearch Scroll:: Scrolling during an incremental search. | 405 | * Not Exiting Isearch:: Prefix argument and scrolling commands. |
| 406 | * Isearch Minibuffer:: Incremental search of the minibuffer history. | 406 | * Isearch Minibuffer:: Incremental search of the minibuffer history. |
| 407 | 407 | ||
| 408 | Replacement Commands | 408 | Replacement Commands |
| 409 | 409 | ||
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index e146177255e..ead7c3cbf16 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -52,14 +52,14 @@ Incremental search backward (@code{isearch-backward}). | |||
| 52 | @end table | 52 | @end table |
| 53 | 53 | ||
| 54 | @menu | 54 | @menu |
| 55 | * Basic Isearch:: Basic incremental search commands. | 55 | * Basic Isearch:: Basic incremental search commands. |
| 56 | * Repeat Isearch:: Searching for the same string again. | 56 | * Repeat Isearch:: Searching for the same string again. |
| 57 | * Error in Isearch:: When your string is not found. | 57 | * Error in Isearch:: When your string is not found. |
| 58 | * Special Isearch:: Special input in incremental search. | 58 | * Special Isearch:: Special input in incremental search. |
| 59 | * Isearch Yank:: Commands that grab text into the search string | 59 | * Isearch Yank:: Commands that grab text into the search string |
| 60 | or else edit the search string. | 60 | or else edit the search string. |
| 61 | * Isearch Scroll:: Scrolling during an incremental search. | 61 | * Not Exiting Isearch:: Prefix argument and scrolling commands. |
| 62 | * Isearch Minibuffer:: Incremental search of the minibuffer history. | 62 | * Isearch Minibuffer:: Incremental search of the minibuffer history. |
| 63 | @end menu | 63 | @end menu |
| 64 | 64 | ||
| 65 | @node Basic Isearch | 65 | @node Basic Isearch |
| @@ -332,9 +332,28 @@ alternative method to add the character after point is to enter the | |||
| 332 | minibuffer with @kbd{M-e} (@pxref{Repeat Isearch}) and type @kbd{C-f} | 332 | minibuffer with @kbd{M-e} (@pxref{Repeat Isearch}) and type @kbd{C-f} |
| 333 | at the end of the search string in the minibuffer. | 333 | at the end of the search string in the minibuffer. |
| 334 | 334 | ||
| 335 | @node Isearch Scroll | 335 | @node Not Exiting Isearch |
| 336 | @subsection Scrolling During Incremental Search | 336 | @subsection Not Exiting Incremental Search |
| 337 | 337 | ||
| 338 | This subsection describes two categories of commands which you can | ||
| 339 | type without exiting the current incremental search, even though they | ||
| 340 | are not themselves part of incremental search. | ||
| 341 | |||
| 342 | @table @asis | ||
| 343 | @item Prefix Arguments | ||
| 344 | @vindex isearch-allow-prefix | ||
| 345 | In incremental search, when you enter a prefix argument | ||
| 346 | (@pxref{Arguments}), by default it will apply either to the next | ||
| 347 | action in the search or to the command that exits the search. | ||
| 348 | |||
| 349 | In previous versions of Emacs, entering a prefix argument always | ||
| 350 | terminated the search. You can revert to this behavior by setting the | ||
| 351 | variable @code{isearch-allow-prefix} to @code{nil}. | ||
| 352 | |||
| 353 | When @code{isearch-allow-scroll} is non-@code{nil} (see below), | ||
| 354 | prefix arguments always have the default behavior described above. | ||
| 355 | |||
| 356 | @item Scrolling Commands | ||
| 338 | @vindex isearch-allow-scroll | 357 | @vindex isearch-allow-scroll |
| 339 | Normally, scrolling commands exit incremental search. If you change | 358 | Normally, scrolling commands exit incremental search. If you change |
| 340 | the variable @code{isearch-allow-scroll} to a non-@code{nil} value, | 359 | the variable @code{isearch-allow-scroll} to a non-@code{nil} value, |
| @@ -366,6 +385,7 @@ This feature can be applied to any command that doesn't permanently | |||
| 366 | change point, the buffer contents, the match data, the current buffer, | 385 | change point, the buffer contents, the match data, the current buffer, |
| 367 | or the selected window and frame. The command must not itself attempt | 386 | or the selected window and frame. The command must not itself attempt |
| 368 | an incremental search. | 387 | an incremental search. |
| 388 | @end table | ||
| 369 | 389 | ||
| 370 | @node Isearch Minibuffer | 390 | @node Isearch Minibuffer |
| 371 | @subsection Searching the Minibuffer | 391 | @subsection Searching the Minibuffer |