all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Spencer Baugh <sbaugh@janestreet.com>
Cc: 62505@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <86h6u31plf.fsf@mail.linkov.net> (raw)
In-Reply-To: <ier7cv0vqhx.fsf@janestreet.com> (Spencer Baugh's message of "Tue, 28 Mar 2023 11:34:50 -0400")

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





  reply	other threads:[~2023-03-29 16:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 15:34 bug#62505: 29.0.60; Switching between query-replace and query-replace-regexp should be easy, like isearch Spencer Baugh
2023-03-29 16:41 ` Juri Linkov [this message]
2023-03-29 18:51   ` Spencer Baugh
2023-03-30 16:35     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h6u31plf.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=62505@debbugs.gnu.org \
    --cc=sbaugh@janestreet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.