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

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 25 Sep 2021 02:54:28 +0200

ndame <[email-masked]> writes:

> Looks like setting the syntax in the minibuffer fixes this:
>
> (modify-syntax-entry ?\\ "\\" (syntax-table))
>
> So the syntax of \  in the minibuffer should be changed temporarily to
> escape-syntax during  read-regexp.

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.)

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

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