Subject: Re: bug#50766: Regexp paren pairs in query-replace-regexp prompt should be highlighted

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 23 Sep 2021 23:15:06 +0200

ndame <[email-masked]> 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