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: Sat, 25 Sep 2021 02:54:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

ndame <laszlomail@protonmail.com> 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





reply via email to

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