From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: "'Kim F. Storm'" <no-spam@cua.dk>
Subject: `match-data' set improperly
Date: Wed, 12 Feb 2003 18:54:33 -0600 (CST) [thread overview]
Message-ID: <200302130054.SAA09991@eel.dms.auburn.edu> (raw)
Matthew Swift wrote:
The documentation (TeXinfo and docstrings) is pretty clear that
(match-string N) when submatch N>0 does not match anything is nil,
and = it is also clear that (match-string 0) is like the case for
N>0 but referring = to the entire match instead of a submatch.
There is no suggestion that match-data is ever undefined, once one
match has been done,
The following in the Elisp manual (Chapter: Searching and Matching, Simple
Match Data Access) suggests exactly that to me:
A search which fails may or may not alter the match data. In the
past, a failing search did not do this, but we may change it in the
future.
Sincerely,
Luc.
next reply other threads:[~2003-02-13 0:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-13 0:54 Luc Teirlinck [this message]
2003-02-13 6:42 ` `match-data' set improperly Matt Swift
2003-02-13 12:25 ` Kim F. Storm
-- strict thread matches above, loose matches on Subject: below --
2003-02-12 3:16 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
2003-02-13 10:08 ` Richard Stallman
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=200302130054.SAA09991@eel.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=no-spam@cua.dk \
/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).