From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14979: 24.3; Feature Request: query-replace-backward Date: Sat, 3 Aug 2013 14:24:35 -0700 (PDT) Message-ID: <5819bbc4-bf73-47a3-92e5-e4f7fde0cf55@default> References: <87mwp612ou.fsf@ThinkPad-W520.localdomain> <87y58pg7pq.fsf@gmail.com> <87txjdg7kc.fsf@gmail.com> <87wqo922so.fsf@mail.jurta.org> <87a9l5yt8g.fsf@mail.jurta.org> <871u6fzu6h.fsf@ThinkPad-W520.localdomain> <87ob9hyvhx.fsf@mail.jurta.org> <87siyq8pxj.fsf@ThinkPad-W520.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375565128 30205 80.91.229.3 (3 Aug 2013 21:25:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 21:25:28 +0000 (UTC) Cc: Jambunathan K , 14979@debbugs.gnu.org To: "Ben A." , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 03 23:25:24 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 1V5jKE-0005rC-PZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 23:25:22 +0200 Original-Received: from localhost ([::1]:40770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5jKE-00073G-7A for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 17:25:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5jK3-0006rg-NK for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 17:25:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5jJv-0001Nb-4O for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 17:25:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5jJv-0001Mp-1O for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 17:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V5jJu-00077u-Cd for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 17:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2013 21:25: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.137556509027371 (code B ref 14979); Sat, 03 Aug 2013 21:25:02 +0000 Original-Received: (at 14979) by debbugs.gnu.org; 3 Aug 2013 21:24:50 +0000 Original-Received: from localhost ([127.0.0.1]:38600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5jJh-00077O-NF for submit@debbugs.gnu.org; Sat, 03 Aug 2013 17:24:50 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:39547) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5jJf-00077A-G4 for 14979@debbugs.gnu.org; Sat, 03 Aug 2013 17:24:47 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r73LOeGj021034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 3 Aug 2013 21:24:40 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r73LObXK022978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Aug 2013 21:24:39 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r73LOb8o026234; Sat, 3 Aug 2013 21:24:37 GMT In-Reply-To: <87siyq8pxj.fsf@ThinkPad-W520.localdomain> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6668.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] 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:76944 Archived-At: > > no prefix M-% - normal non-word replacement forwards > > C-u M-% - word replacement forwards > > M-- M-% (negative argument) - normal non-word replacement backwards > > ??? - word replacement backwards >=20 > no prefix M-% - normal non-word replacement forwards > C-u M-% - word replacement forwards > M-0 M-% - normal non-word replacement backwards > M-- M-% - word replacement backwards I vote against using a prefix arg for anything like this. There are better things to use a prefix arg for. Instead, either choose a different key altogether for backward q-r or do not bind a key for it at all. Just one opinion. FWIW, I bind `M-%' to a command that rolls together these q-r behaviors: * No prefix arg: string q-r (like vanilla `query-replace') * Negative prefix arg: regexp q-r * Non-negative prefix arg: word q-r (like vanilla `query-replace')