From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David desJardins Newsgroups: gmane.emacs.bugs Subject: Re: query-replace nothing Date: 13 Mar 2003 15:28:30 -0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: David desJardins NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047598309 23798 80.91.224.249 (13 Mar 2003 23:31:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2003 23:31:49 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 14 00:31:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18tcAU-00069t-00 for ; Fri, 14 Mar 2003 00:31:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tc8m-0004fw-01 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 13 Mar 2003 18:29:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tc8Z-0004fW-00 for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2003 18:29:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tc8X-0004cS-00 for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2003 18:29:22 -0500 Original-Received: from gold.math.berkeley.edu ([169.229.58.61] helo=Math.Berkeley.EDU) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tc7k-00048g-00 for bug-gnu-emacs@gnu.org; Thu, 13 Mar 2003 18:28:32 -0500 Original-Received: from yuban.math.berkeley.edu (blue1 [169.229.58.58]) by Math.Berkeley.EDU (8.12.8/8.12.8) with ESMTP id h2DNSUeB002144 for ; Thu, 13 Mar 2003 15:28:30 -0800 (PST) X-Authentication-Warning: gold.math.berkeley.edu: Host blue1 [169.229.58.58] claimed to be yuban.math.berkeley.edu Original-Received: (from desj@localhost) by yuban.math.berkeley.edu (8.9.3/8.9.3) id PAA04773; Thu, 13 Mar 2003 15:28:30 -0800 (PST) X-Authentication-Warning: blue1.math.berkeley.edu: desj set sender to desj@math.berkeley.edu using -f Original-To: bug-gnu-emacs@gnu.org In-Reply-To: Original-Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4607 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4607 Dan Jacobson writes: > Aren't you going to catch > (query-replace "" "" nil nil nil) etc., i.e. query-replace-regexp > preferably when the user enters the first empty field. It's legal, and even (occasionally) useful, to query-replace the empty string with a nonempty string. I can't really think of a reason why you would ever want to query-replace a string with the same string, but I'm not sure I see a reason to generate an error, either. David desJardins