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#45973: replace-regexp lisp replacement bug Date: Tue, 19 Jan 2021 20:14:58 +0200 Organization: LINKOV.NET Message-ID: <87v9bsaj4t.fsf@mail.linkov.net> References: <87sg6xr3nv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38776"; 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: Nicholas Drozd , 45973@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 20:05:55 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 1l1wKB-0009yO-4o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 20:05:55 +0100 Original-Received: from localhost ([::1]:46550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1wKA-00056L-5z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 14:05:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1vYu-0003Z2-2b for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:17:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1vYs-0007Km-4g for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1vYr-00059C-Un for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:17:01 -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, 19 Jan 2021 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 45973-submit@debbugs.gnu.org id=B45973.161108018119719 (code B ref 45973); Tue, 19 Jan 2021 18:17:01 +0000 Original-Received: (at 45973) by debbugs.gnu.org; 19 Jan 2021 18:16:21 +0000 Original-Received: from localhost ([127.0.0.1]:51639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vYC-00057y-Qf for submit@debbugs.gnu.org; Tue, 19 Jan 2021 13:16:21 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vY9-00057e-6B; Tue, 19 Jan 2021 13:16:19 -0500 X-Originating-IP: 91.129.98.64 Original-Received: from mail.gandi.net (m91-129-98-64.cust.tele2.ee [91.129.98.64]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 3C2861C000C; Tue, 19 Jan 2021 18:16:08 +0000 (UTC) In-Reply-To: <87sg6xr3nv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Jan 2021 04:44:52 +0100") 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:198197 Archived-At: tags 45973 fixed close 45973 28.0.50 thanks > Nicholas Drozd writes: >> I tried to make a Lisp test to reproduce this, but the `\,` >> replacement feature is interactive-only, and I don't know how to test >> it non-interactively. Thanks for the reproducible test case. > The reproducer is: > > (replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) > > So this is a problem with the new code that highlights the matches, I > think? Yep. Now fixed on master.