GNU bug report logs - #50766
Regexp paren pairs in query-replace-regexp prompt should be highlighted

Previous Next

Package: emacs;

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

Date: Thu, 23 Sep 2021 17:01:01 UTC

Severity: wishlist

Tags: moreinfo, patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: ndame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50766 <at> debbugs.gnu.org
Subject: Re: bug#50766: Regexp paren pairs in query-replace-regexp prompt
 should be highlighted
Date: Mon, 27 Sep 2021 13:16:41 +0000
>
> But doesn't it already have escape syntax? That's why (...) blinks and
> \(...\) doesn't blink, I'd have thought. (But I haven't tested it.)

Optimally, both should blink, but only for their fitting pairs.

So, \( does not match ), no blink, but it matches \), there should be a blink.
And vica versa for (.


> The problem is, though, that we do want \ to escape some things (like
> \[, which is the literal [ character), but the logic is the opposite

Even the literal character can have a matching \] part for which it should
blink, because it helps the user to see which literal \[ he closed.

So blinking should be able to handle escaped and non-escaped parens too and
pair them properly.





This bug report was last modified 1 year and 340 days ago.

Previous Next


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