GNU bug report logs - #50845
Color capturing groups in query replace regexp

Previous Next

Package: emacs;

Reported by: ndame <laszlomail <at> protonmail.com>

Date: Mon, 27 Sep 2021 12:56:02 UTC

Severity: normal

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ndame <laszlomail <at> protonmail.com>
To: 50845 <at> debbugs.gnu.org
Subject: bug#50845: Color capturing groups in query replace regexp
Date: Mon, 27 Sep 2021 12:54:45 +0000
When doing some complex capturing and replacing it could be helpful to see what each of the groups captured.

So instead of coloring the match with a single color when query replacing, the part captured by the first parens
has one color, the second capturing group a different color, etc. and after replacing if the user used a
comma to replace but not move point to the next match, the same colors indicate the replacement texts for the
corresponding groups.

And the matching parts outside of parens can have the same face which qrr currently uses.




This bug report was last modified 3 years and 300 days ago.

Previous Next


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