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

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

bug#50766: Regexp paren pairs in query-replace-regexp prompt should be h


From: Lars Ingebrigtsen
Subject: bug#50766: Regexp paren pairs in query-replace-regexp prompt should be highlighted
Date: Thu, 23 Sep 2021 23:15:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

ndame <laszlomail@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





reply via email to

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