From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: improving query-replace and query-replace-regexp Date: Sat, 29 May 2004 13:58:33 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86vfifo36e.fsf@rumba.de.uu.net> References: <20040528.182035.197345599.wl@gnu.org> <20040529105723.GD27145@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085831958 5484 80.91.224.253 (29 May 2004 11:59:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 11:59:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 29 13:59:14 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BU2Uc-0003k3-00 for ; Sat, 29 May 2004 13:59:14 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BU2Ub-00049m-00 for ; Sat, 29 May 2004 13:59:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BU2Ug-00085f-Ry for emacs-devel@quimby.gnus.org; Sat, 29 May 2004 07:59:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BU2Ua-00085Q-L9 for emacs-devel@gnu.org; Sat, 29 May 2004 07:59:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BU2UZ-00085E-58 for emacs-devel@gnu.org; Sat, 29 May 2004 07:59:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BU2UZ-00085B-0R for emacs-devel@gnu.org; Sat, 29 May 2004 07:59:11 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BU2U1-0006iu-Rz for emacs-devel@gnu.org; Sat, 29 May 2004 07:58:38 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BU2U1-0007kZ-00 for ; Sat, 29 May 2004 13:58:37 +0200 Original-Received: from pd9e1e786.dip.t-dialin.net ([217.225.231.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 May 2004 13:58:37 +0200 Original-Received: from kai by pd9e1e786.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 May 2004 13:58:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9e1e786.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:o85SMtMPoeKzhJe2hmnTEzhqEHw= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24159 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24159 Miles Bader writes: > On Fri, May 28, 2004 at 06:20:35PM +0200, Werner LEMBERG wrote: >> What do you think of making M-% and C-M-% b behave similar to C-s and >> C-u C-s? This is, typing it a second time continues a previous >> query-and-replace action. This would save a lot of time. > > It's not necessary -- as those commands use normal minibuffer input, you can > just use the normal minibuffer history mechanism (M-p, etc). Well, the "from" and "to" prompts use the same history, so you have to be quite careful about the number of times you hit M-p. One idea would be to have them use separate histories. But I just use C-x ESC ESC to repeat query-replace. Kai