From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Discrepancy in definition/use of match-data? Date: Fri, 11 Jun 2004 17:34:46 +0900 Organization: The XEmacs Project Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87n03a7as9.fsf@tleepslib.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086942919 23631 80.91.224.253 (11 Jun 2004 08:35:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2004 08:35:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 11 10:35:11 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 1BYhVG-0008PC-00 for ; Fri, 11 Jun 2004 10:35:10 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYhVG-0001lA-00 for ; Fri, 11 Jun 2004 10:35:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYhVz-00026R-QQ for emacs-devel@quimby.gnus.org; Fri, 11 Jun 2004 04:35:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYhVu-00026A-PB for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:35:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYhVs-00025k-8o for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:35:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYhVs-00025T-4z for emacs-devel@gnu.org; Fri, 11 Jun 2004 04:35:48 -0400 Original-Received: from [130.158.98.109] (helo=tleepslib.sk.tsukuba.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BYhUs-0004Ey-W1; Fri, 11 Jun 2004 04:34:47 -0400 Original-Received: from steve by tleepslib.sk.tsukuba.ac.jp with local (Exim 3.36 #1 (Debian)) id 1BYhUs-000201-00; Fri, 11 Jun 2004 17:34:46 +0900 Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "11 Jun 2004 01:56:39 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, linux) 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:24818 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24818 >>>>> "David" == David Kastrup writes: David> Now the obvious solution to that would be to make David> unsuccessful matches void the match-data, too. I myself David> have no recollection of any discussions about this, but David> Stephen Turnbull was pretty vocal about having proposed David> something like this, To be precise, I tried it in a workspace and was immediately slapped down by a regression test failure. David> What I'll do right now is just changing the condition that David> it will not flag an error for greater-than-encountered David> match-data indices, except for the case of completely void David> match-data where I'll still flag an error. I would suggest improving the error message if at all possible, and documenting this prominently, as it is likely to happen very rarely, and then only in asynchronous calls. -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.