[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `match-data' set improperly

From: Kevin Rodgers
Subject: Re: `match-data' set improperly
Date: Wed, 12 Feb 2003 09:02:34 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

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.

<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]