From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernesto Alfonso Newsgroups: gmane.emacs.bugs Subject: bug#21279: 24.4; (match-end 0) doesn't always return nil when previous string-match fails Date: Mon, 17 Aug 2015 03:34:06 -0400 Message-ID: <871tf24bdd.fsf@andrew.cmu.edu> References: <878u9a4n4k.fsf@andrew.cmu.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439797038 8285 80.91.229.3 (17 Aug 2015 07:37:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2015 07:37:18 +0000 (UTC) Cc: Ernesto Alfonso , 21279@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 17 09:37:04 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZREyd-0007m5-Cg for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2015 09:37:03 +0200 Original-Received: from localhost ([::1]:54513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZREyc-0008Jb-Hh for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2015 03:37:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZREwm-0005EM-DM for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2015 03:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZREwh-0001Oj-EY for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2015 03:35:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZREwh-0001OS-8f for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2015 03:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZREwg-0007tM-VB for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2015 03:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ernesto Alfonso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Aug 2015 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21279-submit@debbugs.gnu.org id=B21279.143979685330261 (code B ref 21279); Mon, 17 Aug 2015 07:35:02 +0000 Original-Received: (at 21279) by debbugs.gnu.org; 17 Aug 2015 07:34:13 +0000 Original-Received: from localhost ([127.0.0.1]:57908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZREvs-0007s1-LD for submit@debbugs.gnu.org; Mon, 17 Aug 2015 03:34:12 -0400 Original-Received: from mail-oi0-f51.google.com ([209.85.218.51]:35274) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZREvp-0007rs-Pa for 21279@debbugs.gnu.org; Mon, 17 Aug 2015 03:34:10 -0400 Original-Received: by oiew67 with SMTP id w67so56572966oie.2 for <21279@debbugs.gnu.org>; Mon, 17 Aug 2015 00:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=7LBwUsVuOwel8iIHISpyysxhdyoskUYAj/CuzNinU74=; b=CpN6LYGndZ0scKM63I4h7vD25lZBeM7B5tmd2fsEH9pSZxlRKeM0VI9zCxlunyw6tg KwueRVj1687N7A0QOVLrArrgYe04hXAwwu6MgbnTuJjNxHn2DUasNCsCPDwL7vjO2Gnk JA1aSb7TSh6ZDtnii6KpY4x/oQ1c6fClv/Vh+maNW1+2Bw3a7j2wLAeKLTm1ZEULpyI9 MiPuELsqmyQ1WxXbsrNLdF/JyMVCjE17pmq84IfpQ7XFIf0w1r7M16gWyhrV8M5bko5F rmzGdhJ4U6t5Mko9hqbp+n/UPr/7ZRFcAu/jiXw/neNZ9aW4zvw0fo4EWcBoQ4pz2huq iWHA== X-Received: by 10.202.228.12 with SMTP id b12mr51979oih.96.1439796849201; Mon, 17 Aug 2015 00:34:09 -0700 (PDT) Original-Received: from debian-lenovo (162-228-201-6.lightspeed.miamfl.sbcglobal.net. [162.228.201.6]) by smtp.gmail.com with ESMTPSA id g10sm7594242obw.2.2015.08.17.00.34.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2015 00:34:08 -0700 (PDT) X-Google-Original-From: Ernesto Alfonso In-Reply-To: (Andreas Schwab's message of "Mon, 17 Aug 2015 09:26:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105528 Archived-At: I see. I think the documentation of match-end and others should be updated, though, since right now it is a little misleading: "Value is nil if SUBEXPth pair didn't match, or there were less than SUBEXP pairs. " seems to suggest that if match fails, value should be nil. I was certaily confused. Ernesto Andreas Schwab writes: > Ernesto Alfonso writes: > >> (match-end 0) doesn't always return nil when previous string-match fails: > > A failing match doesn't set match-data. > > Andreas.