From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: query-replace-interactive Date: 03 Jul 2004 18:59:37 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088895775 24439 80.91.224.253 (3 Jul 2004 23:02:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2004 23:02:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 04 01:02:48 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 1BgtWx-0007HZ-00 for ; Sun, 04 Jul 2004 01:02:47 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgtWx-0007Yf-00 for ; Sun, 04 Jul 2004 01:02:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgtYq-0005He-Fp for emacs-devel@quimby.gnus.org; Sat, 03 Jul 2004 19:04:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgtWK-00042c-Mk for emacs-devel@gnu.org; Sat, 03 Jul 2004 19:02:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgtWH-0003yC-Cq for emacs-devel@gnu.org; Sat, 03 Jul 2004 19:02:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgtWH-0003xp-AH for emacs-devel@gnu.org; Sat, 03 Jul 2004 19:02:05 -0400 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgtTw-0005ln-5r for emacs-devel@gnu.org; Sat, 03 Jul 2004 18:59:40 -0400 Original-Received: from empanada.local ([67.68.217.206]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040703225904.HZSG3387.simmts5-srv.bellnexxia.net@empanada.local>; Sat, 3 Jul 2004 18:59:04 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id 8461524213D; Sat, 3 Jul 2004 18:59:38 -0400 (EDT) Original-To: emacs-devel@gnu.org Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:25429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25429 Is the added complexity of (eq query-replace-interactive 'initial) really worth it ? For one, it has an unusual behavior (the Emacs way would be not to put it as INITIAL but as DEFAULT and to place it in the prompt as "Replace (default foo): "). For two, it's only used for isearch-query-replace and in my experience this additional prompt is just an annoyance: if I hit M-% in isearch I really want to replace the currently matched text. So I suggest we back out this introduction of an `initial' value of query-replace-interactive. I also incidentally suggest that isearch-query-replace don't do (call-interactively 'query-replace) but use (perform-replace isearch-string nil t isearch-regexp isearch-word) instead. If really someone is in isearch and wants to do a query-replace on something else than what he's currently searching, he can do RET M-%. After all, we already agreed that M-% in isearch should obey the isearch-regexp. Stefan