From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: query replace -- error with prompt instead of insert Date: Tue, 13 Sep 2011 14:55:32 -0700 Message-ID: <87litsrtt7.fsf@foolinux.dyndns.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1315950957 9605 80.91.229.12 (13 Sep 2011 21:55:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 21:55:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 13 23:55:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3axM-0000gt-Kc for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 23:55:52 +0200 Original-Received: from localhost ([::1]:37839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3axL-0001qe-Ut for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 17:55:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3axH-0001qX-MZ for help-gnu-emacs@gnu.org; Tue, 13 Sep 2011 17:55:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3axG-0000VX-GJ for help-gnu-emacs@gnu.org; Tue, 13 Sep 2011 17:55:47 -0400 Original-Received: from li225-69.members.linode.com ([173.255.215.69]:35689 helo=ahiker.homeip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3axG-0000Ud-CH for help-gnu-emacs@gnu.org; Tue, 13 Sep 2011 17:55:46 -0400 Original-Received: from adsl-75-30-185-124.dsl.pltn13.sbcglobal.net ([75.30.185.124] helo=matica) by ahiker.homeip.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1R3ax8-0003Pe-SR for help-gnu-emacs@gnu.org; Tue, 13 Sep 2011 14:55:39 -0700 In-Reply-To: (fork's message of "Tue, 13 Sep 2011 17:00:29 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 173.255.215.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82216 Archived-At: fork> So if there are two instances of 'foo' and I replace 'foo' with fork> 'bar' but hit 'y' 10 times, I don't want to insert 8 'y' fork> characters, but flash and error instead. Your desires are contradictory. The very purpose of prompts is to get input from a thinking human before committing to each action. If you know in advance you want to always answer `y', you should use the promptless replace-string. -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Rule 420: All persons more than eight miles high to leave the court.