diff options
| author | Juri Linkov | 2018-03-04 00:33:30 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-03-04 00:33:30 +0200 |
| commit | 90ca83d4bf17a334902321e93fa89ccb1f4a5a4e (patch) | |
| tree | e087ac4e6b558817df3b725348e71908287963ad /doc | |
| parent | b3300c3ec80a40a6fe34a8721b79f273d519f00e (diff) | |
| download | emacs-90ca83d4bf17a334902321e93fa89ccb1f4a5a4e.tar.gz emacs-90ca83d4bf17a334902321e93fa89ccb1f4a5a4e.zip | |
* lisp/isearch.el (search-exit-option): Add options ‘shift-move’ and ‘move’.
Change type from ‘boolean’ to ‘choice’. Extend docstring.
(isearch-pre-move-point): New variable.
(isearch-pre-command-hook, isearch-post-command-hook):
Handle search-exit-option for values ‘move’ and ‘shift-move’.
* doc/emacs/search.texi (Not Exiting Isearch): Document new
values ‘shift-move’ and ‘move’ of search-exit-option.
https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00013.html
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/search.texi | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 887fd982d01..0de3aee1b21 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -437,7 +437,7 @@ of the keymap @code{isearch-mode-map} (@pxref{Keymaps}). | |||
| 437 | 437 | ||
| 438 | This subsection describes how to control whether typing a command not | 438 | This subsection describes how to control whether typing a command not |
| 439 | specifically meaningful in searches exits the search before executing | 439 | specifically meaningful in searches exits the search before executing |
| 440 | the command. It also describes two categories of commands which you | 440 | the command. It also describes three categories of commands which you |
| 441 | can type without exiting the current incremental search, even though | 441 | can type without exiting the current incremental search, even though |
| 442 | they are not themselves part of incremental search. | 442 | they are not themselves part of incremental search. |
| 443 | 443 | ||
| @@ -507,6 +507,18 @@ change point, the buffer contents, the match data, the current buffer, | |||
| 507 | or the selected window and frame. The command must not itself attempt | 507 | or the selected window and frame. The command must not itself attempt |
| 508 | an incremental search. This feature is disabled if | 508 | an incremental search. This feature is disabled if |
| 509 | @code{isearch-allow-scroll} is @code{nil} (which it is by default). | 509 | @code{isearch-allow-scroll} is @code{nil} (which it is by default). |
| 510 | |||
| 511 | @item Motion Commands | ||
| 512 | @cindex motion commands, during incremental search | ||
| 513 | When @code{search-exit-option} is customized to @code{shift-move}, | ||
| 514 | you can extend the search string by holding down the shift key while | ||
| 515 | typing cursor motion commands. It will yank text that ends at the new | ||
| 516 | position after moving point in the current buffer. | ||
| 517 | |||
| 518 | When @code{search-exit-option} is @code{move}, you can extend the | ||
| 519 | search string without using the shift key for cursor motion commands, | ||
| 520 | but it applies only for certain motion command that have the | ||
| 521 | @code{isearch-move} property on their symbols. | ||
| 510 | @end table | 522 | @end table |
| 511 | 523 | ||
| 512 | @node Isearch Minibuffer | 524 | @node Isearch Minibuffer |