summaryrefslogtreecommitdiff
path: root/doc/emacs/search.texi
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2021-04-07 17:51:30 +0000
committerJuri Linkov <juri@linkov.net>2021-04-08 22:04:08 +0300
commit972bab0981fb0cc0d992b4a195ebaf33c79858c3 (patch)
treea8f017cf4e78f92f832a7a7b34a9b394d254a15b /doc/emacs/search.texi
parentb4eb84d4afd1b847f6f4c272d04ffa1f4b36dc98 (diff)
downloademacs-972bab0981fb0cc0d992b4a195ebaf33c79858c3.tar.gz
User option to move to another match when changing direction in isearch.
* lisp/isearch.el (isearch-direction-change-changes-match): New user option (bug#47599). (isearch-repeat): Use the new option. (isearch-repeat-forward, isearch-repeat-backward): Adapt to the new option. * etc/NEWS: Mention the new user option. * doc/emacs/search.texi: Document the new user option.
Diffstat (limited to 'doc/emacs/search.texi')
-rw-r--r--doc/emacs/search.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index f3c42bcea7f..38430a2ab15 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -201,6 +201,14 @@ something before the starting point, type @kbd{C-r} to switch to a
backward search, leaving the search string unchanged. Similarly,
@kbd{C-s} in a backward search switches to a forward search.
+@cindex search, changing direction
+@vindex isearch-repeat-on-direction-change
+ When you change the direction of a search, the first command you
+type will, by default, remain on the same match, and the cursor will
+move to the other end of the match. To move to another match
+immediately, customize the variable
+@code{isearch-repeat-on-direction-change} to @code{t}.
+
@cindex search, wrapping around
@cindex search, overwrapped
@cindex wrapped search