From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: query-replace-interactive Date: Tue, 06 Jul 2004 18:00:10 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <876594drn6.fsf@mail.jurta.org> <87k6xjouj5.fsf@mail.jurta.org> <871xjp5uii.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1089151305 3843 80.91.224.253 (6 Jul 2004 22:01:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2004 22:01:45 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 07 00:01:28 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 1Bhy0F-0003t1-00 for ; Wed, 07 Jul 2004 00:01:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bhy0F-0002ea-00 for ; Wed, 07 Jul 2004 00:01:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bhy2H-0002iU-F7 for emacs-devel@quimby.gnus.org; Tue, 06 Jul 2004 18:03:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bhy1U-0002Eo-LV for emacs-devel@gnu.org; Tue, 06 Jul 2004 18:02:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bhy1S-0002DX-S6 for emacs-devel@gnu.org; Tue, 06 Jul 2004 18:02:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bhy1S-0002AH-GZ for emacs-devel@gnu.org; Tue, 06 Jul 2004 18:02:42 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bhxz1-0005UZ-9h for emacs-devel@gnu.org; Tue, 06 Jul 2004 18:00:11 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Bhxz0-0006uJ-ES; Tue, 06 Jul 2004 18:00:10 -0400 Original-To: Juri Linkov In-reply-to: <871xjp5uii.fsf@mail.jurta.org> (message from Juri Linkov on Tue, 06 Jul 2004 12:56:21 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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:25507 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25507 1. When users see "(default a -> b)" text in the prompt and want to change the last replacement slightly, the first reaction is to type M-n to insert it into the minibuffer for editing, since this is the standard Emacs behavior. Instead of that, they will get an error "End of history; no default available". I misunderstood the idea of "(default a->b)". Now that I see what it really does, I agree with you that it has lots of problems. Here's what I THOUGHT the idea was. The idea is that M-x query-replace would read just one minibuffer argument. That argument would have the form FROM->TO. After the arg is read, the interactive spec would split it apart at the -> to get the FROM and TO strings, and they would become the arguments in the call to query-replace. Further, the default for this one argument would be the previous argument to query-replace. The default would be used if you type RET and available to edit with M-n. This is radical, perhaps too radical, but it is clean and coherent.