From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: please implement query-exchange Date: 20 Nov 2002 05:57:28 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87heedcjef.fsf@jidanni.org> References: <87heeejvoo.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037747949 30136 80.91.224.249 (19 Nov 2002 23:19:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2002 23:19:09 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18EHe5-0007pX-00 for ; Wed, 20 Nov 2002 00:19:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EHf4-0002fd-00; Tue, 19 Nov 2002 18:20:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EHed-0002WQ-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 18:19:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EHeS-0002T8-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 18:19:38 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EHeS-0002T4-00 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2002 18:19:28 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18EHca-0007k7-00 for ; Wed, 20 Nov 2002 00:17:32 +0100 Original-To: bug-gnu-emacs@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18EHcZ-0007jx-00 for ; Wed, 20 Nov 2002 00:17:31 +0100 Original-Path: 127.0.0.1!nobody Original-Lines: 11 Original-NNTP-Posting-Host: tc218-187-78-136.2-4.pl.apol.com.tw Original-X-Trace: main.gmane.org 1037747851 29680 218.187.78.136 (19 Nov 2002 23:17:31 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Tue, 19 Nov 2002 23:17:31 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3914 Anyway, how about we dispose of my bug by merely adding to the query-replace Info pages: But what if you want to say, _exchange_ x and y: replace x's with y's, but at the same time replace y's with x's? Well, try something like (query-replace "x" "@TEMP@") (query-replace "y" "x") (query-replace "@TEMP@" "y") -- http://jidanni.org/ Taiwan(04)25854780