From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#12526: 24.2.50; `query-replace-interactive' not always respected Date: Wed, 3 Oct 2012 12:00:05 +0200 Message-ID: References: <877gr8obbs.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1349258477 15263 80.91.229.3 (3 Oct 2012 10:01:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2012 10:01:17 +0000 (UTC) Cc: 12526@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 12:01:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TJLl0-0000kK-Nj for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Oct 2012 12:00:46 +0200 Original-Received: from localhost ([::1]:51468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJLkt-0005DP-0X for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Oct 2012 06:00:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJLkl-0005B6-Gj for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 06:00:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJLkf-0001Sk-MZ for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 06:00:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJLkf-0001Rd-GN for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 06:00:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TJLlF-0002ui-V2 for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 06:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Oct 2012 10:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12526 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12526-submit@debbugs.gnu.org id=B12526.134925844711180 (code B ref 12526); Wed, 03 Oct 2012 10:01:01 +0000 Original-Received: (at 12526) by debbugs.gnu.org; 3 Oct 2012 10:00:47 +0000 Original-Received: from localhost ([127.0.0.1]:38653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJLl0-0002uG-FI for submit@debbugs.gnu.org; Wed, 03 Oct 2012 06:00:46 -0400 Original-Received: from mail-ee0-f44.google.com ([74.125.83.44]:43593) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJLkx-0002u7-84 for 12526@debbugs.gnu.org; Wed, 03 Oct 2012 06:00:44 -0400 Original-Received: by eekd4 with SMTP id d4so3599765eek.3 for <12526@debbugs.gnu.org>; Wed, 03 Oct 2012 03:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GYNGdUlJiZRmrXDyuDU4ZKMzyECZiiIjdDyo1v9inl8=; b=QoSONZFCLzwcLbipQ/HU+cE/F7THtheWf7LDRUe9YeZOezrQaXSsFTYB1sJuAfy628 5fShxuIeioJM2xe50bVTv50U91XcOmTavtpVJ5VSirevbznvaPvjFluRRLF83jVLe2XV PlR2MrO32ncNRM6wjSB13Zjp6DhSx5zd6kd5pqAkIxOY+8ZEN4UAqMbL/dvmr/L89ssh dNtz6exR6DvblW+dRyP5e2R4rguQzsEl7+pMvUbYApGEPexhINcJVghHg/hLH+twiOmj Eju/kgqNQg7a3XUVg4AKHjV23BzQEydbnG3lkbXVC6zq6DovRpQAojcUrpGs3XLyOrW+ 7wbg== Original-Received: by 10.14.224.135 with SMTP id x7mr1854054eep.34.1349258405214; Wed, 03 Oct 2012 03:00:05 -0700 (PDT) Original-Received: by 10.14.203.135 with HTTP; Wed, 3 Oct 2012 03:00:05 -0700 (PDT) In-Reply-To: <877gr8obbs.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65152 Archived-At: >> Is that feature documented somewhere? > > Yes, it is documented in the Info node > (info "(emacs) Special Isearch") Ok, but definitely the docstring of query-replace should be updated, because currently it is misleading: If `query-replace-interactive' is non-nil, the last incremental search string is used as FROM-STRING--you don't have to specify it with the minibuffer. This paragraph is incomplete (and therefore misleading) because it doesn't explain the behavior I complained about. Also, the docstring of `query-replace-interactive' should be update for the same reason. >> Is there a way to disable that feature? > > Yes, you can easily disable this feature > by adding this keybinding to your init file: > > (define-key isearch-mode-map [?\M-%] > (lambda () > (interactive) > (isearch-exit) ;; I'm too lazy to terminate search with RET. > (call-interactively 'query-replace))) This is an ugly solution, IMO. I don't want to define a new command and bind M-% to it; I'd like to set some user-option in my init file so that query-replace never assumes nothing about the "from" string. BTW: I think that a much better approach would be to add the last search string to the list of default arguments, so that, after an Isearch, I could do `M-% M-n' if I wanted to retrieve that last search string. -- Dani Moncayo