aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov2018-03-04 00:33:30 +0200
committerJuri Linkov2018-03-04 00:33:30 +0200
commit90ca83d4bf17a334902321e93fa89ccb1f4a5a4e (patch)
treee087ac4e6b558817df3b725348e71908287963ad /doc
parentb3300c3ec80a40a6fe34a8721b79f273d519f00e (diff)
downloademacs-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.texi14
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
438This subsection describes how to control whether typing a command not 438This subsection describes how to control whether typing a command not
439specifically meaningful in searches exits the search before executing 439specifically meaningful in searches exits the search before executing
440the command. It also describes two categories of commands which you 440the command. It also describes three categories of commands which you
441can type without exiting the current incremental search, even though 441can type without exiting the current incremental search, even though
442they are not themselves part of incremental search. 442they are not themselves part of incremental search.
443 443
@@ -507,6 +507,18 @@ change point, the buffer contents, the match data, the current buffer,
507or the selected window and frame. The command must not itself attempt 507or the selected window and frame. The command must not itself attempt
508an incremental search. This feature is disabled if 508an 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
513When @code{search-exit-option} is customized to @code{shift-move},
514you can extend the search string by holding down the shift key while
515typing cursor motion commands. It will yank text that ends at the new
516position after moving point in the current buffer.
517
518When @code{search-exit-option} is @code{move}, you can extend the
519search string without using the shift key for cursor motion commands,
520but 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