From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.bugs Subject: `match-data' set improperly Date: Wed, 12 Feb 2003 18:54:33 -0600 (CST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200302130054.SAA09991@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045097611 10003 80.91.224.249 (13 Feb 2003 00:53:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 00:53:31 +0000 (UTC) Cc: "'Kim F. Storm'" 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 18j7bm-0002W5-00 for ; Thu, 13 Feb 2003 01:52:10 +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 18j7dj-0000tW-06 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 19:54:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18j7dQ-0000Yx-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 19:53:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18j7dL-0000Pe-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 19:53:50 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j7dJ-0000O8-00 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2003 19:53:45 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id SAA29474; Wed, 12 Feb 2003 18:53:44 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id SAA09991; Wed, 12 Feb 2003 18:54:33 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: Matthew Swift Original-cc: bug-gnu-emacs@gnu.org 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:4445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4445 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.