From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: Possible bug in `match-string` in 24.4.50.18? Date: Sun, 25 May 2014 14:33:22 +1000 Message-ID: <87bnumh3zh.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400992438 12917 80.91.229.3 (25 May 2014 04:33:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 04:33:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 25 06:33:51 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 1WoQ86-0002uf-I5 for ged-emacs-devel@m.gmane.org; Sun, 25 May 2014 06:33:50 +0200 Original-Received: from localhost ([::1]:50288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoQ85-0006Ig-Ty for ged-emacs-devel@m.gmane.org; Sun, 25 May 2014 00:33:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoQ7u-0006I1-CX for emacs-devel@gnu.org; Sun, 25 May 2014 00:33:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoQ7l-0001Xb-CJ for emacs-devel@gnu.org; Sun, 25 May 2014 00:33:38 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:38593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoQ7l-0001XN-5W for emacs-devel@gnu.org; Sun, 25 May 2014 00:33:29 -0400 Original-Received: by mail-pa0-f52.google.com with SMTP id fa1so5996945pad.11 for ; Sat, 24 May 2014 21:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:from:to:subject:date:message-id:mime-version :content-type; bh=hBjvTD5vCzArXVZD60J/le9+kRS7M1xSyGtN9Oi9G4A=; b=bmv4yGcUz3ZfbqN1bzcVxRmDaVDjhiKBJ5WpjdYJOBnzMWeqbxhqJGt2btFlEPUfXy z+XxeEKibfPrap1q9r2x43ADM+Zaiu+4Bz7gledSLJgm3otVjhqDZNspeW3UtG71EuhP eH+kx7bQAC4EyyOwUdJUXVApy+AhGpM5bEWHfAKOdDj+Vef0x/w47PoW1wG2ioAdKZkp SDQAHlYlL2l23LbnwNH+T7WaXyZaLKe5r0988PXOhK0rKGQasKE7jjsYiWKVCPvz1pEF EAYGVZmaSOY8MN5wzbwDRTRZApdGWXK2542iDrhaPCh+R7vwQK4xsQVQRxo29jItjp+Q tBuA== X-Received: by 10.68.254.5 with SMTP id ae5mr17854035pbd.83.1400992407917; Sat, 24 May 2014 21:33:27 -0700 (PDT) Original-Received: from localhost (ppp118-209-145-187.lns20.mel6.internode.on.net. [118.209.145.187]) by mx.google.com with ESMTPSA id wg7sm11740610pbc.73.2014.05.24.21.33.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 21:33:27 -0700 (PDT) User-agent: mu4e 0.9.9.6pre3; emacs 24.4.50.18 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::234 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:172071 Archived-At: Hi all, i couldn't see any reference to this issue in the bug-gnu-emacs archives of recent weeks. Take the following code: (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? Alexis.