|
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:0.9.4.1) 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:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
[Prev in Thread] | Current Thread | [Next in Thread] |