From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: `match-data' set improperly
Date: Wed, 12 Feb 2003 09:02:34 -0700 [thread overview]
Message-ID: <3E4A701A.8060302@ihs.com> (raw)
In-Reply-To: mailman.1845.1045043916.21513.bug-gnu-emacs@gnu.org
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>
next prev parent reply other threads:[~2003-02-12 16:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-12 3:16 `match-data' set improperly Matthew Swift
2003-02-12 10:53 ` Kim F. Storm
2003-02-12 19:25 ` Matt Swift
[not found] ` <mailman.1845.1045043916.21513.bug-gnu-emacs@gnu.org>
2003-02-12 16:02 ` Kevin Rodgers [this message]
2003-02-13 10:08 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2003-02-13 0:54 Luc Teirlinck
2003-02-13 6:42 ` Matt Swift
2003-02-13 12:25 ` Kim F. Storm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E4A701A.8060302@ihs.com \
--to=kevin.rodgers@ihs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).