From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#17373: 24.3.50; match data is incorrect if there are too many groups Date: Tue, 29 Apr 2014 21:19:11 +0200 Message-ID: <87ppk0hrkg.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398799231 21366 80.91.229.3 (29 Apr 2014 19:20:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2014 19:20:31 +0000 (UTC) To: 17373@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 21:20:24 2014 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 1WfDZl-0007th-Bn for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 21:20:21 +0200 Original-Received: from localhost ([::1]:52126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDZk-0008IN-VA for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 15:20:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDZb-0008GP-5r for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:20:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfDZT-0004Zc-Rx for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:20:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDZT-0004ZG-PK for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WfDZT-0007tq-9N for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Apr 2014 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17373 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139879918030326 (code B ref -1); Tue, 29 Apr 2014 19:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2014 19:19:40 +0000 Original-Received: from localhost ([127.0.0.1]:45404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfDZ6-0007t3-5r for submit@debbugs.gnu.org; Tue, 29 Apr 2014 15:19:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47347) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfDZ4-0007sr-0p for submit@debbugs.gnu.org; Tue, 29 Apr 2014 15:19:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfDYr-0004NW-By for submit@debbugs.gnu.org; Tue, 29 Apr 2014 15:19:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDYr-0004NS-9s for submit@debbugs.gnu.org; Tue, 29 Apr 2014 15:19:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDYl-0006RG-1y for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:19:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfDYe-0004Jq-PP for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:19:18 -0400 Original-Received: from mailrelay006.isp.belgacom.be ([195.238.6.172]:55562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDYe-0004Jj-GB for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 15:19:12 -0400 X-Belgacom-Dynamic: yes Original-Received: from 41.233-178-91.adsl-dyn.isp.belgacom.be (HELO LDLC-portable) ([91.178.233.41]) by relay.skynet.be with ESMTP; 29 Apr 2014 21:19:10 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 140.186.70.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:88455 Archived-At: Hi, The following reports 2. Replace 255 by 254, and it'll report 512 as expected #+BEGIN_SRC emacs-lisp (with-temp-buffer (insert "bar") (when (re-search-backward (concat (mapconcat (lambda (x) (format "\\(%s\\)" x)) (make-list 255 "foo") "\\|") "\\|" "\\(bar\\)") nil t) (length (match-data)))) #+END_SRC Regexps with many groups is the kind of thing is used in AUCTeX, in TeX-auto-parse-region. What auctex does in that function is construct a big regexp out of a list of smaller ones (each small one is made into a group) ; then when the big regexp matches it then tries to find out which of the smaller regexps actually matched by checking which group is non-nil. In GNU Emacs 24.3.50.7 (i686-pc-linux-gnu, GTK+ Version 2.24.20) of 2014-04-10 on LDLC-portable Windowing system distributor `The X.Org Foundation', version 11.0.11405000 System Description: Ubuntu 13.10 Configured using: `configure 'CFLAGS=-g3 -O2'' Important settings: value of $LANG: fr_BE.UTF-8 locale-coding-system: utf-8-unix -- Nico.