From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14979: 24.3; Feature Request: query-replace-backward Date: Tue, 30 Jul 2013 00:02:55 +0300 Organization: JURTA Message-ID: <87a9l5yt8g.fsf@mail.jurta.org> References: <87mwp612ou.fsf@ThinkPad-W520.localdomain> <87y58pg7pq.fsf@gmail.com> <87txjdg7kc.fsf@gmail.com> <87wqo922so.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375131995 10734 80.91.229.3 (29 Jul 2013 21:06:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 21:06:35 +0000 (UTC) Cc: "Ben A." , 14979@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 29 23:06:35 2013 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 1V3ueJ-0002F5-EI for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 23:06:35 +0200 Original-Received: from localhost ([::1]:56278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ueI-0002ti-Tg for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jul 2013 17:06:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3uds-0002Lu-Mx for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2013 17:06:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3udm-0002cY-N9 for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2013 17:06:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3udm-0002cU-Jc for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2013 17:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V3udm-0000Wy-2o for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2013 17:06: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: Mon, 29 Jul 2013 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14979-submit@debbugs.gnu.org id=B14979.13751319271951 (code B ref 14979); Mon, 29 Jul 2013 21:06:02 +0000 Original-Received: (at 14979) by debbugs.gnu.org; 29 Jul 2013 21:05:27 +0000 Original-Received: from localhost ([127.0.0.1]:56711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3udC-0000VP-Uq for submit@debbugs.gnu.org; Mon, 29 Jul 2013 17:05:27 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:56185 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3udA-0000VC-DQ for 14979@debbugs.gnu.org; Mon, 29 Jul 2013 17:05:25 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 147BB258B9E915; Mon, 29 Jul 2013 14:05:20 -0700 (PDT) In-Reply-To: <87wqo922so.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 29 Jul 2013 11:22:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:76775 Archived-At: > it's straightforward to implement this in Emacs where > `(isearch-forward t)' in `replace-search' could be replaced > with `(isearch-forward replace-forward)' where `replace-forward' > is a new option that can be changed in `isearch-query-replace' > according to the current value of `isearch-forward'. Actually using the value of `isearch-forward' to make decision about the direction of replacements is not good because often `C-r' is used to find the uppermost match from which to run forward replacements. Maybe it would help if after the last replacement `query-replace' asked whether to wrap and continue replacements from the beginning of the buffer. Then no matches will be missed when `query-replace' happens to be started in the middle of the buffer.