From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#62505: 29.0.60; Switching between query-replace and query-replace-regexp should be easy, like isearch Date: Thu, 30 Mar 2023 19:35:55 +0300 Organization: LINKOV.NET Message-ID: <86pm8qw61g.fsf@mail.linkov.net> References: <86h6u31plf.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 62505@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 18:47:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phvQm-0004bd-FD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 18:47:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phvQW-000626-Eh; Thu, 30 Mar 2023 12:47:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phvQU-00061l-VI for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 12:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phvQU-0007HJ-Kb for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 12:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phvQU-0004k1-FM for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 16:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62505 X-GNU-PR-Package: emacs Original-Received: via spool by 62505-submit@debbugs.gnu.org id=B62505.168019479818175 (code B ref 62505); Thu, 30 Mar 2023 16:47:02 +0000 Original-Received: (at 62505) by debbugs.gnu.org; 30 Mar 2023 16:46:38 +0000 Original-Received: from localhost ([127.0.0.1]:59336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phvQ6-0004j5-75 for submit@debbugs.gnu.org; Thu, 30 Mar 2023 12:46:38 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:62703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phvQ3-0004ip-VL for 62505@debbugs.gnu.org; Thu, 30 Mar 2023 12:46:36 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BAD8A4000D; Thu, 30 Mar 2023 16:46:28 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Wed, 29 Mar 2023 14:51:02 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258939 Archived-At: >>> 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. > > I think both should work. > > True that 'M-s r' doesn't work if you first start editing the search > string with 'M-e'. Maybe Isearch would also benefit from having that > work? With C-s and C-M-s bindings, which work both while searching and > while editing the search string in the minibuffer? It should be straightforward to support this in the minibuffer since there was a recent precedent of implementing a similar feature that toggles case-fold with 'M-s c' (read-regexp-toggle-case-fold) in the minibuffer that reads a regexp to search/replace.