GNU bug report logs -
#74666
31.0.50; Regression in replace-match with empty-adjacent groups
Previous Next
Full log
View this message in rfc822 format
> Cc: 74666 <at> 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" <bug-gnu-emacs <at> gnu.org>
>
> > 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?
This bug report was last modified 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.