GNU bug report logs - #45973
replace-regexp lisp replacement bug

Previous Next

Package: emacs;

Reported by: Nicholas Drozd <nicholasdrozd <at> gmail.com>

Date: Tue, 19 Jan 2021 00:16:01 UTC

Severity: normal

Tags: confirmed, fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 45973 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Nicholas Drozd <nicholasdrozd <at> gmail.com>, 45973 <at> debbugs.gnu.org
Subject: Re: bug#45973: replace-regexp lisp replacement bug
Date: Tue, 19 Jan 2021 20:14:58 +0200
tags 45973 fixed
close 45973 28.0.50
thanks

> Nicholas Drozd <nicholasdrozd <at> gmail.com> 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.




This bug report was last modified 4 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.