From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5786: new cc-mode <>-matching barfs in complex case Date: Sat, 03 Apr 2010 18:59:22 -0400 Message-ID: <87bpe0ta5x.fsf__23947.7845876992$1270337222$gmane$org@stupidchicken.com> References: <4BAD4941.90304@censorshipresearch.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270337222 15849 80.91.229.12 (3 Apr 2010 23:27:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 23:27:02 +0000 (UTC) Cc: 5786@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 04 01:26:58 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCjx-0001qm-UD for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Apr 2010 01:26:58 +0200 Original-Received: from localhost ([127.0.0.1]:54993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyCjx-00024R-Cu for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 19:26:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyCj6-0001hd-2i for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:26:04 -0400 Original-Received: from [140.186.70.92] (port=57435 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyCj4-0001hC-Jj for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:26:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyCj3-00075B-0Y for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:26:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58468) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCiv-00074M-Hu; Sat, 03 Apr 2010 19:25:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NyCJv-0000qL-IN; Sat, 03 Apr 2010 19:00:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <4BAD4941.90304@censorshipresearch.org> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 03 Apr 2010 23:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5786 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 5786-submit@debbugs.gnu.org id=B5786.12703355733218 (code B ref 5786); Sat, 03 Apr 2010 23:00:03 +0000 Original-Received: (at 5786) by debbugs.gnu.org; 3 Apr 2010 22:59:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCJQ-0000pr-RG for submit@debbugs.gnu.org; Sat, 03 Apr 2010 18:59:33 -0400 Original-Received: from pantheon-po25.its.yale.edu ([130.132.50.119]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCJO-0000pm-Ez for 5786@debbugs.gnu.org; Sat, 03 Apr 2010 18:59:31 -0400 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o33MxMxZ027802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Apr 2010 18:59:22 -0400 Original-Received: by furry (Postfix, from userid 1000) id 969A2C055; Sat, 3 Apr 2010 18:59:22 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 03 Apr 2010 19:00:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35906 Archived-At: > Note: Although the trace below is from Emacs 22, I'm using cc-mode from > HEAD. It doesn't affect the bug. > > cc-mode seems to barf in certain cases on files with lots of template > brackets. I can't quite figure out what's wrong with it: the testcase > below is about as small as I could make it. > > To reproduce: load the following file in c++-mode, position point at > line 3, column 6 (just after the "/*"), and press space. It's > important not to scroll around the buffer first. You'll see a > backtrace I can't reproduce the bug using emacs-23 branch (nor with the 23.1.95 pretest), starting from `emacs -Q'. Daniel, could you please check if a 23.1.95 build from ftp://alpha.gnu.org/gnu/emacs/pretest/ has this problem? If so, please provide an even more exact recipe, sending the test file as an attachement and providing precise steps starting from `emacs -Q'.