bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45973: replace-regexp lisp replacement bug


From: Juri Linkov
Subject: bug#45973: replace-regexp lisp replacement bug
Date: Tue, 19 Jan 2021 20:14:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

tags 45973 fixed
close 45973 28.0.50
thanks

> Nicholas Drozd <nicholasdrozd@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]