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#47599: 28.0.50; Feature request improve/update isearch Date: Tue, 06 Apr 2021 22:16:24 +0300 Organization: LINKOV.NET Message-ID: <87mtubrzp3.fsf@mail.linkov.net> References: <20210405020725.ob7bewlin7cid4pa.ref@Ergus> <20210405020725.ob7bewlin7cid4pa@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4351"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 47599-done@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 21:26:31 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 1lTrLL-000125-9N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 21:26:31 +0200 Original-Received: from localhost ([::1]:47736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTrLK-0004BS-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 15:26:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTrHz-000054-9e for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 15:23:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTrHy-0004TB-8N for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 15:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTrHy-00027I-57 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 15:23:02 -0400 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47599 X-GNU-PR-Package: emacs Mail-Followup-To: 47599@debbugs.gnu.org, juri@linkov.net, spacibba@aol.com Original-Received: via spool by 47599-done@debbugs.gnu.org id=D47599.16177369798113 (code D ref 47599); Tue, 06 Apr 2021 19:23:01 +0000 Original-Received: (at 47599-done) by debbugs.gnu.org; 6 Apr 2021 19:22:59 +0000 Original-Received: from localhost ([127.0.0.1]:41795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTrHv-00026n-6o for submit@debbugs.gnu.org; Tue, 06 Apr 2021 15:22:59 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:56325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTrHs-00026W-Rg for 47599-done@debbugs.gnu.org; Tue, 06 Apr 2021 15:22:57 -0400 Original-Received: from mail.gandi.net (m91-129-107-223.cust.tele2.ee [91.129.107.223]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 7A44E240004; Tue, 6 Apr 2021 19:22:48 +0000 (UTC) In-Reply-To: <20210405020725.ob7bewlin7cid4pa@Ergus> (Ergus via's message of "Mon, 5 Apr 2021 04:07:25 +0200") 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:203648 Archived-At: > Just to follow this: > https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg00080.html > > I open a feature request to suggest some updates in the isearch code and > the addition of some simple functionalities like: > > 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. > 2) Convert isearch-wrap-function, Thanks for the suggestion. Customization of wrapping was implemented now by the new option 'isearch-wrap-pause'. It also handles numeric arguments of 'isearch-repeat'. > isearch-push-state-function, > isearch-filter-predicate into customs instead of use defvar, improve a > bit their documentation and provide some handy options. These functions are intended to be modified by modes, not by users. > 3) Make some general refactor of isearch code to simplify and remove > some redundant or useless checks, vars and code. Update the code to use > some useful modern api like define-minor-mode or easy-mmode-defmap. There > are some external packages that reimplement the isearch > functionalities or hack it to produce some of these > functionalities/behavior and maybe (as an extra) we could consider add > some customs to make isearch behave like a bit like that; because most > of them are not very different to what isearch already does now. Rewriting isearch is a huge and unnecessary task. More patches were posted directly to emacs-devel now, so more changes are expected from that discussion.