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


Message #14 received at 50766 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: ndame <laszlomail <at> protonmail.com>
Cc: 50766 <at> debbugs.gnu.org
Subject: Re: bug#50766: Regexp paren pairs in query-replace-regexp prompt
 should be highlighted
Date: Sat, 25 Sep 2021 02:54:28 +0200
ndame <laszlomail <at> 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




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.