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: Invalid search bound (wrong side of point) Date: Tue, 01 Jun 2004 10:57:30 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <878yf8lfoc.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1086102051 12890 80.91.224.253 (1 Jun 2004 15:00:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2004 15:00:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 01 17:00:45 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 1BVAj4-0002s3-00 for ; Tue, 01 Jun 2004 16:58:50 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVAj3-00054t-00 for ; Tue, 01 Jun 2004 16:58:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVAjI-0008Eq-Hs for emacs-devel@quimby.gnus.org; Tue, 01 Jun 2004 10:59:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVAil-0007y7-ON for emacs-devel@gnu.org; Tue, 01 Jun 2004 10:58:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVAik-0007xU-KF for emacs-devel@gnu.org; Tue, 01 Jun 2004 10:58:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVAik-0007wf-9z for emacs-devel@gnu.org; Tue, 01 Jun 2004 10:58:30 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BVAhn-0000u9-Je for emacs-devel@gnu.org; Tue, 01 Jun 2004 10:57:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BVAhm-0006rf-S9; Tue, 01 Jun 2004 10:57:30 -0400 Original-To: Juri Linkov In-reply-to: <878yf8lfoc.fsf@mail.jurta.org> (message from Juri Linkov on Mon, 31 May 2004 19:33:38 +0300) 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:24347 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24347 `perform-replace' uses nil value returned from `re-search-forward' as a condition to terminate the loop, but when the value of point becomes greater than limit, "Invalid search bound" error is signalled, even though `noerror' argument of `re-search-forward' is t. I think that is correct behavior. Invalid arguments are a different matter from valid arguments but no match. The clean solution is for perform-replace to detect the situation explicitly.