Subject: bug#12526: 24.2.50; `query-replace-interactive' not always respected

From: Stefan Monnier <[email-masked]>
Date: Thu, 27 Sep 2012 09:41:35 -0400

>> From emacs -Q: M-< C-s t h i s M-%
> Expected result: the query-replace command ask me for both the "from"
> and the "to" strings.  (note that the variable
> `query-replace-interactive' is nil).
> Observed result: the command uses the last search string ("this") as
> the "from" string and ask me only for the "to" string.

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

        Stefan