GNU bug report logs - #62505
29.0.60; Switching between query-replace and query-replace-regexp should be easy, like isearch

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Tue, 28 Mar 2023 15:35:02 UTC

Severity: normal

Found in version 29.0.60

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 62505 <at> debbugs.gnu.org
Subject: Re: bug#62505: 29.0.60; Switching between query-replace and
 query-replace-regexp should be easy, like isearch
Date: Wed, 29 Mar 2023 19:41:00 +0300
> isearch-forward and isearch-forward-regexp are bound to C-s and C-M-s.
> After an isearch-forward is started, it can be switched to
> isearch-forward-regexp by typing M-s r.
>
> query-replace and query-replace-regexp are bound to M-% and C-M-%.
> After a query-replace is started, there's no way to switch it to
> query-replace-regexp.

It's not clear whether you want to switch modes when the replacement
process is already underway, or when reading query-replace arguments
in the minibuffer.  In Isearch mode 'M-s r' switches modes when the
search process is in progress, not when reading the search string
in the minibuffer.

> M-s is already bound in query-replace (it's a minibuffer binding), so
> the same binding as isearch won't work.  I suggest that typing C-M-% in
> query-replace should switch to query-replace-regexp, and M-% in
> query-replace-regexp should switch to query-replace.

Maybe 'M-s' in the minibuffer could be rebound to 'M-s M-s',
thus freeing 'M-s' as a prefix key.




This bug report was last modified 2 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.