emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 636e082: Document isearch-wrap-pause


From: Lars Ingebrigtsen
Subject: master 636e082: Document isearch-wrap-pause
Date: Tue, 21 Sep 2021 16:01:38 -0400 (EDT)

branch: master
commit 636e082e451aacb881a94b6c5b3dafb15d7eaa3d
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Document isearch-wrap-pause
    
    * doc/emacs/search.texi (Repeat Isearch): Document
    `isearch-wrap-pause'.
---
 doc/emacs/search.texi | 9 +++++++++
 etc/NEWS              | 3 +++
 2 files changed, 12 insertions(+)

diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index e4322e3..8a101f1 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -222,6 +222,15 @@ going past the original starting point of the search, it 
changes to
 @samp{Overwrapped}, which means that you are revisiting matches that
 you have already seen.
 
+@vindex isearch-wrap-pause
+  You can control what happens when there are no more matches by
+customizing the @code{isearch-wrap-pause} user option.  If it is
+@code{t} (the default), signal an error.  (Repeating the search will
+wrap around.)  If @code{no}, issue a @code{ding} and wrap immediately
+after reaching the last match.  If @code{no-ding}, wrap immediately,
+but don't @code{ding}.  Finally, if @code{nil}, never wrap, but just
+stop at the last match.
+
 @cindex search ring
 @findex isearch-ring-advance
 @findex isearch-ring-retreat
diff --git a/etc/NEWS b/etc/NEWS
index 7765f5a..4bdbdea 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1044,10 +1044,12 @@ achieve that.
 +++
 ** New command 'C-x C-k Q' to force redisplay in keyboard macros.
 
+---
 ** 'blink-cursor-mode' is now enabled by default regardless of the UI.
 It used to be enabled when Emacs is started in GUI mode but not when started
 in text mode.  The cursor still only actually blinks in GUI frames.
 
++++
 ** New minor mode 'show-paren-local-mode'.
 It serves as a local counterpart for 'show-paren-mode', allowing you
 to toggle it separately in different buffers.
@@ -1074,6 +1076,7 @@ distinguish between sub-expression highlighting.
 Like 'search-highlight-submatches', this is controlled by the new user option
 'query-replace-highlight-submatches'.
 
++++
 *** New user option 'isearch-wrap-pause' defines how to wrap the search.
 There are choices to disable wrapping completely and to wrap immediately.
 When wrapping immediately, it consistently handles the numeric arguments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]