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#15530: swapping replace queries - feature request Date: Sat, 5 Oct 2013 07:11:57 -0700 (PDT) Message-ID: <6ebb5218-decb-4d9f-821e-9c944775b1e6@default> References: <524FB6EE.5040200@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380982397 32466 80.91.229.3 (5 Oct 2013 14:13:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Oct 2013 14:13:17 +0000 (UTC) To: Andreas =?UTF-8?Q?R=C3=B6hler?= , 15530@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 05 16:13:20 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 1VSSbg-0005lH-7X for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 16:13:20 +0200 Original-Received: from localhost ([::1]:51984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSSbf-0005oD-QC for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 10:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSSbW-0005mh-MO for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 10:13:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSSbP-0007ke-4z for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 10:13:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSSbP-0007kZ-1V for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 10:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VSSbO-0004E1-IZ for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 10:13: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, 05 Oct 2013 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15530-submit@debbugs.gnu.org id=B15530.138098232616175 (code B ref 15530); Sat, 05 Oct 2013 14:13:02 +0000 Original-Received: (at 15530) by debbugs.gnu.org; 5 Oct 2013 14:12:06 +0000 Original-Received: from localhost ([127.0.0.1]:56009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSSaT-0004Co-5m for submit@debbugs.gnu.org; Sat, 05 Oct 2013 10:12:05 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:22422) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSSaP-0004CR-LW for 15530@debbugs.gnu.org; Sat, 05 Oct 2013 10:12:02 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r95EBx5c021010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 5 Oct 2013 14:12:00 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r95EBw3R016493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Oct 2013 14:11:58 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r95EBvop016488; Sat, 5 Oct 2013 14:11:58 GMT In-Reply-To: <524FB6EE.5040200@easy-emacs.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:78937 Archived-At: > http://stackoverflow.com/questions/19189213/emacs-swapping-replace-querie= s > Calling query-replace with C-u could swap the expressions presented > initially. Please don't. As was pointed out at that URL: YAGNI. Just use `M-p' a couple of times. And you only need to reverse them once, to be able to reuse the reversed order. Using `C-u' just to reverse previous inputs would be a waste. One can easily dream up more important uses for a prefix arg for `M-%' here. (What I do for `M-%' is combine regular q-r, regexp q-r, and word q-r, distinguishing by prefix arg (regular: none, regexp: 0/+, word: -). Not saying that's what vanilla Emacs should do - just one example of better uses for the prefix arg here.)