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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: ndame <laszlomail <at> protonmail.com>
Cc: 50766 <at> debbugs.gnu.org
Subject: bug#50766: Regexp paren pairs in query-replace-regexp prompt should be highlighted
Date: Thu, 23 Sep 2021 23:15:06 +0200
ndame <laszlomail <at> protonmail.com> writes:

> Emacs highlights parents by default, e.g. when point is after the closing
> paren  the opening parent is highlighted.
>
> If I type capturing parens in the query replace regexp prompt then the
> paren pairs are not highlighted:
>
>    Query replace regexp: \(something\)
>
> They should be, so when typing a complex regexp with multiple capturing
> parens then it's easier to see the pairs.

Let's see...  this basically ends up calling `read-regexp', which then
calls `read-from-minibuffer'.

The blinking is done from `blink-matching-open', which does a
`(forward-sexp -1)' to find the position.

So we'd have to set up some syntax stuff to get this right.  Does
anybody know if we have something ready-made for regexps somewhere?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.