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:56:36 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8765aadbgb.fsf@mail.jurta.org> References: <20040528.182035.197345599.wl@gnu.org> <87k6yvorzf.fsf@mail.jurta.org> <20040529213132.GA31322@fencepost> <873c5hd35q.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 1086139353 5567 80.91.224.253 (2 Jun 2004 01:22:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2004 01:22:33 +0000 (UTC) Cc: wl@gnu.org, emacs-devel@gnu.org, rms@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 02 03:22:22 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 1BVKSU-0007eS-00 for ; Wed, 02 Jun 2004 03:22:22 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVKSU-0001lw-00 for ; Wed, 02 Jun 2004 03:22:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVKSk-0007Cp-CF for emacs-devel@quimby.gnus.org; Tue, 01 Jun 2004 21:22:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVKSc-0007CZ-Ql for emacs-devel@gnu.org; Tue, 01 Jun 2004 21:22:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVKSb-0007CN-9R for emacs-devel@gnu.org; Tue, 01 Jun 2004 21:22:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVKSb-0007CK-75 for emacs-devel@gnu.org; Tue, 01 Jun 2004 21:22:29 -0400 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BVKQk-00005k-Gg; Tue, 01 Jun 2004 21:20:34 -0400 Original-Received: from mail.jurta.org (80-235-39-81-dsl.mus.estpak.ee [80.235.39.81]) by spork.dreamhost.com (Postfix) with ESMTP id 97B2011DC1F; Tue, 1 Jun 2004 18:20:30 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "01 Jun 2004 19:48:23 -0400") 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:24379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24379 Stefan Monnier writes: >> I tried Stefan's implementation and it works fine. I have only one remark: >> if the last history item contains newlines, it may confuse users because >> it displays only the closing square bracket at the minibuffer prompt. > > Good point. How about the version below instead? This version works fine, it displays all control characters explicitly. I suggest to use the same technique in all other places where search strings are displayed literally, i.e. in messages like "Query replacing %s with %s". And for consistency with the above message the default prompt could use the word "with" instead of the "->" arrow: "Query replace [%s with %s]: " or as Miles suggested: "Query replace (default %s with %s): " And your compact default prompt grew so much :-/ -- Juri Linkov http://www.jurta.org/emacs/