From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Possible bug in `match-string` in 24.4.50.18? Date: Sun, 25 May 2014 16:35:38 +0300 Message-ID: <83ioouj80l.fsf@gnu.org> References: <87bnumh3zh.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401024971 21934 80.91.229.3 (25 May 2014 13:36:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 13:36:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alexis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 25 15:36:04 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WoYam-00014s-72 for ged-emacs-devel@m.gmane.org; Sun, 25 May 2014 15:36:00 +0200 Original-Received: from localhost ([::1]:51522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoYal-0005Vg-S5 for ged-emacs-devel@m.gmane.org; Sun, 25 May 2014 09:35:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoYaa-0005JI-I9 for emacs-devel@gnu.org; Sun, 25 May 2014 09:35:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoYaQ-0002ib-31 for emacs-devel@gnu.org; Sun, 25 May 2014 09:35:48 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:34649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoYaP-0002iB-Fg for emacs-devel@gnu.org; Sun, 25 May 2014 09:35:37 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N6400600TKFP600@mtaout25.012.net.il> for emacs-devel@gnu.org; Sun, 25 May 2014 16:32:24 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N64002CNTLZO840@mtaout25.012.net.il>; Sun, 25 May 2014 16:32:24 +0300 (IDT) In-reply-to: <87bnumh3zh.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172077 Archived-At: > From: Alexis > Date: Sun, 25 May 2014 14:33:22 +1000 > > (setq address "mailto:alexis@example.com") > (setq re "mailto") > (string-match re address) > (match-string 0 address) > > In 24.3, the call to `string-match` correctly returns 0, and the call to > `match-string` correctly returns "mailto". > > In 24.4.50.18 (more specifically, git commit > 08005cbfff9227ac73cbee5f3f5afa65f8c27849), the call to `string-match` > correctly returns 0, but the call to `match-string` consistently returns > "m" instead of "mailto". > > Am i doing something wrong, is there an issue with my local setup, or is > this a bug? I cannot reproduce this with today's trunk. Does it happen to you in "emacs -Q"?