unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 12526@debbugs.gnu.org
Subject: bug#12526: 24.2.50; `query-replace-interactive' not always respected
Date: Fri, 28 Sep 2012 10:03:05 +0200	[thread overview]
Message-ID: <CAH8Pv0iMGY4d4eXZn7a-83q2MPUwOuQE8wnu-KDjBex964bmjw@mail.gmail.com> (raw)
In-Reply-To: <CAH8Pv0iaD0miuih=aDYmZFh6f18OJ6TZ8yp0FmLcrqhFpE62dw@mail.gmail.com>

>> That's a feature independent from query-replace-interactive, indeed.
>> If you want to be prompted, then terminate your search (e.g. with RET)
>> before hitting M-%.
>
> Ah, thanks.
>
> Is that feature documented somewhere?
> Is there a way to disable that feature?

What about (slightly) altering the current semantics of
`query-replace-interactive' so that the "from" string in query-replace
is taken from:
* if "nil" --> from the minibuffer.
* if "t" --> from the last search string (if any), else from the minibuffer.
* if "any other non-nil value" --> from the last search string, if
`query-replace' was invoked from an I-search session, and else from
the minibuffer.

-- 
Dani Moncayo





  parent reply	other threads:[~2012-09-28  8:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27 13:03 bug#12526: 24.2.50; `query-replace-interactive' not always respected Dani Moncayo
2012-09-27 13:41 ` Stefan Monnier
2012-09-27 13:49   ` Dani Moncayo
2012-09-27 13:52     ` Dani Moncayo
2012-09-28  8:03     ` Dani Moncayo [this message]
2012-10-02 20:37     ` Juri Linkov
2012-10-03 10:00       ` Dani Moncayo
2012-10-03 23:38         ` Juri Linkov
2012-10-04  8:39           ` Dani Moncayo
2012-10-04  9:09             ` Juri Linkov
2012-10-04 11:45               ` Dani Moncayo
2012-10-04 19:30                 ` Juri Linkov
2012-10-04 14:15               ` Drew Adams
2012-10-04 19:30                 ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAH8Pv0iMGY4d4eXZn7a-83q2MPUwOuQE8wnu-KDjBex964bmjw@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=12526@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).