From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74666: 31.0.50; Regression in replace-match with empty-adjacent groups Date: Sat, 28 Dec 2024 13:38:14 +0200 Message-ID: <8634i8t4ux.fsf@gnu.org> References: <5aad7547-5fd7-4eba-a6eb-38b1b4753dd8@gmail.com> <8340bf95-c716-4ebe-994e-07554b6e2165@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39539"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74666@debbugs.gnu.org, ideasman42@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 12:39:15 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 1tRVA2-000A7H-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 12:39:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRV9r-0004LR-2L; Sat, 28 Dec 2024 06:39:03 -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 1tRV9q-0004LA-8h for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:39:02 -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 1tRV9p-0000Ei-W2 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:39:02 -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:References:In-Reply-To:From:Date:To:Subject; bh=g+yp6k2Ct2U2/ozN0KAWDRvOEgj76z5omxO8QzIL4jg=; b=jYD6nyzcI+HSx9wVtE1N0oCSzxIivr1jMf7ML0UyV+k1tOQA33yDSRMOlpud+d6t+e7CDB4LeJd0qJZAeBcvn0dFt6fBEhSPqfUbjLBPIn1t6RGkz9iFw2MI+YWU9nYeW2hMjLFXsXisWlt5t8ZOEJHrvlaSkpYxww2UZ5UdioPXPxEQdy0TItqhgY4HuqN/JXaP4TJy/rg2ziY7mwUl2AbxyjoNbox2VKLeWlNgsZoLVdf94HyClmloKGjUyFB6oghNBttQvIXzOorMjlhVqSwWEjcC++kUO+DxYb0updXkJ5r2hwU/TPPHkkUyve8oyXN3ibyHnZ4tZGxmgYUtqw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRV9p-0008Qh-Pq for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Dec 2024 11:39:01 +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.173538590632356 (code B ref 74666); Sat, 28 Dec 2024 11:39:01 +0000 Original-Received: (at 74666) by debbugs.gnu.org; 28 Dec 2024 11:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:49506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRV9F-0008Pn-Sm for submit@debbugs.gnu.org; Sat, 28 Dec 2024 06:38:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRV9D-0008Pa-WA for 74666@debbugs.gnu.org; Sat, 28 Dec 2024 06:38:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRV97-0000Bb-UM; Sat, 28 Dec 2024 06:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=g+yp6k2Ct2U2/ozN0KAWDRvOEgj76z5omxO8QzIL4jg=; b=XWzNSzXmvE7q/NJ8DwcM PmNuo4swvTptSA3PXljIydnV80cKUk6RS91ZDNxjExd4qhyrV5/g5xmMdHqSr14P4W6lktG6mbuti EWEDlseFBDXfV2H3Zq4kXU/OVu5YxJuVs9ZOQcVw/5NZgDpb9YAh6PltulT1xlQ6jtQn+g/6zEElM zSV3ujfoRc/Fzbz36Zi1phcrTdrFlWL3yYd3eGgFHP3rARaQZSCZuE2dQEZz9HmWYyeAG5dPJd7HY B7CEeMZWkdJjukzVU2do8zdteBYW8DppQ2jyLLku5+N5JEUIUJc3UJc2uTi/snFWfLGPpOY/RVqRi 5eHvI/jf9t0Zxg==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:297888 Archived-At: > Cc: 74666@debbugs.gnu.org > Date: Mon, 16 Dec 2024 22:18:57 -0500 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > 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. 🙂 > > > Since this used to work I think it's reasonable to consider it a regression. > > 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 suspect > > this would impact others. > > [ And the workaround relies on another lucky accident: the "easiest" > fix for the problem would break your workaround. 🙁 ] What should we do with this bug report?