From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: improving query-replace and query-replace-regexp Date: Sat, 29 May 2004 17:31:32 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040529213132.GA31322@fencepost> References: <20040528.182035.197345599.wl@gnu.org> <87k6yvorzf.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085866353 31362 80.91.224.253 (29 May 2004 21:32:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 21:32:33 +0000 (UTC) Cc: wl@gnu.org, emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 29 23:32:26 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 1BUBRK-00038s-00 for ; Sat, 29 May 2004 23:32:26 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUBRK-0007iO-00 for ; Sat, 29 May 2004 23:32:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUBRQ-0007Qj-Gt for emacs-devel@quimby.gnus.org; Sat, 29 May 2004 17:32:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUBRI-0007QU-Vq for emacs-devel@gnu.org; Sat, 29 May 2004 17:32:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUBRI-0007QI-H7 for emacs-devel@gnu.org; Sat, 29 May 2004 17:32:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUBRI-0007QF-Eu for emacs-devel@gnu.org; Sat, 29 May 2004 17:32:24 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BUBQY-0008SD-Sw for emacs-devel@gnu.org; Sat, 29 May 2004 17:31:38 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.34) id 1BUBQS-0008Qt-JP; Sat, 29 May 2004 17:31:32 -0400 Original-To: Juri Linkov Content-Disposition: inline In-Reply-To: <87k6yvorzf.fsf@mail.jurta.org> User-Agent: Mutt/1.3.28i Blat: Foop 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:24196 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24196 On Sun, May 30, 2004 at 12:15:00AM +0300, Juri Linkov wrote: > But an empty argument to M-% can't be used to repeat query-replace > because the first argument of query-replace makes sense even when > it is empty. It can be used to insert a replacement string between > all characters, i.e. to change a string like "abcdef" into ";a;b;c;d;e;f;" > by (query-replace "" ";"). This is an infrequent operation but > still makes sense. I don't think it's frequent enough to matter; the "empty string inserts between characters" usage is a kludgey hack, not something you expect people to know about. > There should be a better solution like already proposed M-% M-% with > the second M-% typed in the minibuffer. That's a really kludgey hack too. Minibuffer input is _not like_ isearch input... -Miles -- Saa, shall we dance? (from a dance-class advertisement)