From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47599: 28.0.50; Feature request improve/update isearch Date: Tue, 06 Apr 2021 21:32:51 +0000 Message-ID: References: <20210405020725.ob7bewlin7cid4pa.ref@Ergus> <20210405020725.ob7bewlin7cid4pa@Ergus> <87mtubrzp3.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ojoCh9ctfP" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , 47599-done@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 23:33:09 2021 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 1lTtJs-0001oI-PS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 23:33:08 +0200 Original-Received: from localhost ([::1]:52864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTtJr-00081h-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 17:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTtJm-00081a-1l for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTtJl-0005v5-Qi for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTtJl-0007R1-OF for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47599 X-GNU-PR-Package: emacs Original-Received: via spool by 47599-done@debbugs.gnu.org id=D47599.161774477628566 (code D ref 47599); Tue, 06 Apr 2021 21:33:01 +0000 Original-Received: (at 47599-done) by debbugs.gnu.org; 6 Apr 2021 21:32:56 +0000 Original-Received: from localhost ([127.0.0.1]:41943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTtJf-0007Qg-Mi for submit@debbugs.gnu.org; Tue, 06 Apr 2021 17:32:55 -0400 Original-Received: from heytings.org ([95.142.160.155]:55994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTtJd-0007QX-Qi for 47599-done@debbugs.gnu.org; Tue, 06 Apr 2021 17:32:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1617744772; bh=jNw9kAFPHDx7/cU13B88Tmh6ZnwjAp5ty1DXxq44pWM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=avl+CJ20a+rJFV7Nixa+opnGH+ugTJFY6h6tNKybaRPyviwmYs4n27Zrggc7pY/nH /aBSRrgVi/HrSiF1wWHsdf3HQANWBMXZJWuZCcHspSA2l5FOYBjGUmC5e0K4kfvuBi 54dNjDeil69V7laKfGUa2VQGUdlC3lATDEQYDjbUF45jxfMH5KOYzEDb0kjh+MwwxE dJ/6NrgQpjSH5DXLLAukKuD6kxumAHD+Sx1x/8pIR++o2tnToq/9DrtQWFw7Op3sXE 2QSnkBzeWT2xtZNZQ2M3KY6XiSIBGEPNib0JzRRRGqFxACiODK6to0IEUsAdwnmT0F A+s+OS6Tf7UOg== In-Reply-To: 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:203656 Archived-At: --ojoCh9ctfP Content-Type: text/plain; charset=us-ascii; format=flowed >>>> 1) Option or command to automatically go to the other end on exit. >>> >>> It seems the conclusion was that it should not be an option. As for a >>> command, there were objections against binding it to a key, but >>> without a keybinding such command has little sense. >> >> I attach a patch which implements these two "options" in isearch-exit. > > And of course my patch had an error ;-) > While we're improving isearch, there is another minor change that I think would improve its behavior, namely to go to the next/previous match when changing the search direction, instead of hitting the same match before moving to the next/previous one with the next C-s/C-r. This change is so small that I'm not sure it's worth creating a defcustom for it, but you might have a different opinion. --ojoCh9ctfP Content-Type: text/x-diff; name=0001-Find-another-match-when-changing-direction-in-isearc.patch Content-Transfer-Encoding: base64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-Find-another-match-when-changing-direction-in-isearc.patch RnJvbSA2M2U3NGU3YTA2ZGYxZWJmMDUwNjEzMjhkZTdlZGIxYjVmOWY4MjAw IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBUdWUsIDYgQXBy IDIwMjEgMjE6MjQ6NDcgKzAwMDANClN1YmplY3Q6IFtQQVRDSF0gR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