From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: `match-data' set improperly Date: Wed, 12 Feb 2003 09:02:34 -0700 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E4A701A.8060302@ihs.com> References: <200302120316.h1C3Gvcu007789@beth.swift.xxx> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045066781 3723 80.91.224.249 (12 Feb 2003 16:19:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 16:19:41 +0000 (UTC) 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 18izMV-0008Fk-00 for ; Wed, 12 Feb 2003 17:03:51 +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 18izNy-0002Nq-00 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 11:05:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18izNR-00026E-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 12 Feb 2003 11:04:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18izMp-0001ai-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 12 Feb 2003 11:04:13 -0500 Original-Received: from ashd1-1.relay.mail.uu.net ([199.171.54.245]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18izMo-0001Jd-00 for bug-gnu-emacs@prep.ai.mit.edu; Wed, 12 Feb 2003 11:04:10 -0500 Original-Received: from mail.fu-berlin.de by mr0.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQobsy19754 for ; Wed, 12 Feb 2003 16:03:57 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Wed, 12 Feb 2003 17:02:29 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Wed, 12 Feb 2003 17:02:28 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 17 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1045065748 45978620 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:4435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4435 Kim F. Storm wrote: > My guess is that you are not supposed to use match-data when > string-match fails, so its value is indeed undefined in that case. > > What _valid_ values would you expect it to contain after the match failed? () is a valid list, which is what match-data must return. I think match-beginning, match-end, and string-match should signal an error if match-data is nil. -- Kevin Rodgers