Subject: bug#56535: 28.1; `no' and `no-ding' values for isearch-wrap-pause option (since Emacs 28.1) not working as documented

From: Juri Linkov <[email-masked]>
Date: Wed, 13 Jul 2022 22:50:08 +0300

> But when I set the value to `no' or `no-ding', I was expecting the
> point to automatically move to the third line immediately after typing
> "t" as mentioned in the above use case.

It was never intended to wrap around on typing a letter or yanking a text.
If such a behavior is a good idea, it could be added as a new value
to this variable.

Please try the following patch after setting isearch-wrap-pause to the
new value 'auto-repeat':

diff --git a/lisp/isearch.el b/lisp/isearch.el
index cedbfdc2e8..6e14003614 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2838,6 +2838,9 @@ isearch-search-and-update
 			    isearch-barrier
 			    (1+ isearch-other-end)))))
       (isearch-search)
+      (when (and (eq isearch-wrap-pause 'auto-repeat)
+                 (not isearch-success))
+        (isearch-repeat (if isearch-forward 'forward 'backward)))
       ))
   (isearch-push-state)
   (if isearch-op-fun (funcall isearch-op-fun))