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#53181: Live preview of regexp replace Date: Tue, 11 Jan 2022 19:58:40 +0200 Organization: LINKOV.NET Message-ID: <86k0f6m9wv.fsf@mail.linkov.net> References: <868rvmiqrj.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33893"; 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: 53181@debbugs.gnu.org, Augusto Stoffel To: ndame Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 19:04:13 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 1n7LVD-0008eU-3N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 19:04:11 +0100 Original-Received: from localhost ([::1]:55740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7LVC-0004KG-1A for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 13:04:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7LRG-0006iw-N0 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 13:00:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7LRD-000738-1O for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 13:00:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7LRC-0002Ck-T2 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 13:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jan 2022 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53181 X-GNU-PR-Package: emacs Original-Received: via spool by 53181-submit@debbugs.gnu.org id=B53181.16419239998435 (code B ref 53181); Tue, 11 Jan 2022 18:00:02 +0000 Original-Received: (at 53181) by debbugs.gnu.org; 11 Jan 2022 17:59:59 +0000 Original-Received: from localhost ([127.0.0.1]:55494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7LR9-0002Bz-5p for submit@debbugs.gnu.org; Tue, 11 Jan 2022 12:59:59 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7LR7-0002BZ-Fc for 53181@debbugs.gnu.org; Tue, 11 Jan 2022 12:59:58 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 78983E0002; Tue, 11 Jan 2022 17:59:48 +0000 (UTC) In-Reply-To: (ndame's message of "Tue, 11 Jan 2022 13:28:54 +0000") 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:223950 Archived-At: >> This is exactly what Augusto is currently doing in bug#53126. > > I checked it and it's not the same. It says: > > " the highlighting and count of matches as one types a regexp or string to > replace in `query-replace{-regexp}'." > > So it may do the first part, the highlighting of the regexp pattern while typing, > but it does not seem to do the second part, that is showing the replacement effects > in the buffer immediately as the user types the replacement text or pattern. > > The second part is just as important, because that shows if the actual replacement > is correct or it needs some tweaking before starting replacing. Augusto is porting the package anzu to the core, and anzu implemented the second part that shows the replacement effects immediately: https://github.com/emacsorphanage/anzu.git