From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: improving query-replace and query-replace-regexp Date: Wed, 02 Jun 2004 03:59:14 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87u0xu3d6u.fsf@mail.jurta.org> References: <20040528.182035.197345599.wl@gnu.org> <87k6yvorzf.fsf@mail.jurta.org> <20040529213132.GA31322@fencepost> <40BD1C52.6010200@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086144277 13273 80.91.224.253 (2 Jun 2004 02:44:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2004 02:44:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 02 04:44:30 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 1BVLjy-00024K-00 for ; Wed, 02 Jun 2004 04:44:30 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVLjy-0003py-00 for ; Wed, 02 Jun 2004 04:44:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVLkE-0006aU-Nj for emacs-devel@quimby.gnus.org; Tue, 01 Jun 2004 22:44:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVLkB-0006aF-V9 for emacs-devel@gnu.org; Tue, 01 Jun 2004 22:44:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVLkA-0006ZK-Ct for emacs-devel@gnu.org; Tue, 01 Jun 2004 22:44:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVLkA-0006Z0-6O for emacs-devel@gnu.org; Tue, 01 Jun 2004 22:44:42 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BVLji-00078E-E0 for emacs-devel@gnu.org; Tue, 01 Jun 2004 22:44:14 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by mx20.gnu.org with esmtp (Exim 4.34) id 1BVLZE-0003ya-De for emacs-devel@gnu.org; Tue, 01 Jun 2004 22:33:24 -0400 Original-Received: from mail.jurta.org (80-235-32-52-dsl.mus.estpak.ee [80.235.32.52]) by knife.dreamhost.com (Postfix) with ESMTP id 43640E411E; Tue, 1 Jun 2004 19:33:21 -0700 (PDT) Original-To: Kevin Rodgers In-Reply-To: <40BD1C52.6010200@yahoo.com> (Kevin Rodgers's message of "Tue, 01 Jun 2004 18:16:18 -0600") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) 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:24383 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24383 Kevin Rodgers writes: > Miles Bader wrote: > > On Sun, May 30, 2004 at 12:15:00AM +0300, Juri Linkov wrote: > >>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... > > Indeed, since I've set enable-recursive-minibuffers I want to be able to > run M-% on the contents of the minibuffer (yanked, or inserted via M-p). As I understand, the proposal for M-% M-% was with the intention that the second M-% would repeat the last replacement only when typed in the empty minibuffer. So you still could use M-% to replace strings in the minibuffer if the input string is not empty (yanked or inserted). Anyway, this seems irrelevant now with the M-% RET solution. -- Juri Linkov http://www.jurta.org/emacs/