From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#56535: 28.1; `no' and `no-ding' values for isearch-wrap-pause option (since Emacs 28.1) not working as documented Date: Wed, 13 Jul 2022 22:50:08 +0300 Organization: LINKOV.NET Message-ID: <865yk0g5cf.fsf@mail.linkov.net> References: <83a69dw72m.fsf@gnu.org> <83wnchuexs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6712"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 56535@debbugs.gnu.org, Eli Zaretskii , visuweshm@gmail.com To: Arun V Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 21:52:25 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBiPI-0001ZS-G6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 21:52:24 +0200 Original-Received: from localhost ([::1]:39184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBiPH-0005EQ-0L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 15:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBiOw-0005EI-76 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBiOv-0004Jk-TT for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBiOv-0006Mt-Qa for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 15:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2022 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56535 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56535-submit@debbugs.gnu.org id=B56535.165774191724469 (code B ref 56535); Wed, 13 Jul 2022 19:52:01 +0000 Original-Received: (at 56535) by debbugs.gnu.org; 13 Jul 2022 19:51:57 +0000 Original-Received: from localhost ([127.0.0.1]:47805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiOr-0006Mb-FJ for submit@debbugs.gnu.org; Wed, 13 Jul 2022 15:51:57 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiOq-0006MO-CA for 56535@debbugs.gnu.org; Wed, 13 Jul 2022 15:51:56 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 193AA40002; Wed, 13 Jul 2022 19:51:48 +0000 (UTC) In-Reply-To: (Arun V.'s message of "Wed, 13 Jul 2022 23:23:00 +0530") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236930 Archived-At: --=-=-= Content-Type: text/plain > 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': --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=isearch-wrap-pause-auto-repeat.patch 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)) --=-=-=--