From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74666: 31.0.50; Regression in replace-match with empty-adjacent groups Date: Mon, 16 Dec 2024 22:18:57 -0500 Message-ID: References: <5aad7547-5fd7-4eba-a6eb-38b1b4753dd8@gmail.com> <8340bf95-c716-4ebe-994e-07554b6e2165@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1337"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74666@debbugs.gnu.org To: Campbell Barton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 04:20:32 2024 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 1tNO8N-0000BW-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 04:20:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNO7z-0002tk-Tr; Mon, 16 Dec 2024 22:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNO7w-0002rS-5W for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 22:20:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNO7v-0006nk-4I for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 22:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=JAqFBbX2GN7SktIyqHXPPFRwgBHZGZmAca5lrAG1gPg=; b=GY8w3SJi40XtrX1KWItzMUWVWDjyDOStDmtFJulcMFm4XWwLFFEd+HApBFWvHcAk3n2ZUZ/eztXHbpNUHRSfMdCZL5d/oLWL6T4XnEHiaq6/NAmlai1SDr8WQvvqdEaKSXH6M1L8A19gKhnmZbTukkpuAYDHNsMv72lF1dwRoo7V9SRHyS+gn31D6h7rtjFWO54p+KfWyFyXxXFdF1rX2DHrtyzCqxd7TdUyJv9wT3Wl6uLi+1OsKnt+zQ8f0XMWMGdHFhdORLxd+9m7g2tatcpjhPkGlvmtNgVGXTFI6BM43yYyW+jzFCG/Zg1EcesBzftEZg+2Fpp3Bl4AyhYJQA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNO7u-0003qU-Io for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 22:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 03:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74666 X-GNU-PR-Package: emacs Original-Received: via spool by 74666-submit@debbugs.gnu.org id=B74666.173440555014679 (code B ref 74666); Tue, 17 Dec 2024 03:20:02 +0000 Original-Received: (at 74666) by debbugs.gnu.org; 17 Dec 2024 03:19:10 +0000 Original-Received: from localhost ([127.0.0.1]:57017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNO73-0003of-Tw for submit@debbugs.gnu.org; Mon, 16 Dec 2024 22:19:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNO71-0003o4-LR for 74666@debbugs.gnu.org; Mon, 16 Dec 2024 22:19:08 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 802E480848; Mon, 16 Dec 2024 22:18:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1734405538; bh=pcFscS0zDC6SFoHFFQ4U6Pm0Sjf5nAU566RZSYay+P0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KW8aRtbh+WFHbRpJBTGCXAdwghGpHPlYAueFOMMaPBvfKaicdvU/qx5NAA53EaYr0 6Y9pH+xhVEC+fUEcBfQI4wgaoCZBgdwu1cUdPQDNMrFwKmIyyg3QdT2sROF/Vrlx5O rs2+CfQ009MZYeeE7wFQWLY8LpL4Rw5JAo1O3fBeeuAMy5Z030tyHWjObQ0HttD8jZ BrPOSETrpWXKXmYPDvC37Pe4zaF1NVTeDUq4mmn4AlxmCMZsSS8AbUIzOKh7Rs2KFK 2V5wZ0a6ZFPxLlKhvpAoopSsb4Gko9mNDsprQhiJG6u8Mh9ZigepI3qAtyqgzNwqES x8bwaCbXQSReg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8CFB080372; Mon, 16 Dec 2024 22:18:58 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 649791204C5; Mon, 16 Dec 2024 22:18:58 -0500 (EST) In-Reply-To: <8340bf95-c716-4ebe-994e-07554b6e2165@gmail.com> (Campbell Barton's message of "Sun, 15 Dec 2024 12:10:26 +1100") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297248 Archived-At: > In this case, the match data is set with `set-match-data' using > calculated ranges. I guess we can take this as good thing: it means complexifying the regexp code would be wasted. =F0=9F=99=82 > Since this used to work I think it's reasonable to consider it a regressi= on. I was not trying to say it's not a regression. Just pouting because the old behavior was just a lucky accident and recovering it without losing the other improvement isn't completely straightforward. > I've since committed a workaround to evil-numbers [1], although I'd suspe= ct > this would impact others. [ And the workaround relies on another lucky accident: the "easiest" fix for the problem would break your workaround. =F0=9F=99=81 ] Stefan