From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) Date: Fri, 07 Sep 2012 10:53:38 -0400 Message-ID: References: <87ehpbni8j.fsf@kfs-lx2.home.kfs> <503D4B11.6000501@cua.dk> <20120902211620.GA3824@acm.acm> <50447C94.2040402@cua.dk> <20120905204821.GA3620@acm.acm> <87ipbqpkb7.fsf@maru.md5i.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347029644 11592 80.91.229.3 (7 Sep 2012 14:54:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 14:54:04 +0000 (UTC) Cc: Alan Mackenzie , 11749@debbugs.gnu.org, Kim Storm To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 07 16:54:05 2012 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 1T9zwX-0003Rs-AM for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 16:54:01 +0200 Original-Received: from localhost ([::1]:52830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9zwU-0001R5-99 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 10:53:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9zwS-0001Oz-5F for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 10:53:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9zwM-00062S-HP for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 10:53:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9zwG-00061V-JH; Fri, 07 Sep 2012 10:53:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9zwY-0000CU-70; Fri, 07 Sep 2012 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 07 Sep 2012 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11749 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 11749-submit@debbugs.gnu.org id=B11749.1347029641763 (code B ref 11749); Fri, 07 Sep 2012 14:54:02 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 7 Sep 2012 14:54:01 +0000 Original-Received: from localhost ([127.0.0.1]:46779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9zwW-0000CF-SZ for submit@debbugs.gnu.org; Fri, 07 Sep 2012 10:54:01 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50542) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9zwU-0000C8-Rj for 11749@debbugs.gnu.org; Fri, 07 Sep 2012 10:53:59 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q87ErcJr018584; Fri, 7 Sep 2012 10:53:38 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 479E4B4085; Fri, 7 Sep 2012 10:53:38 -0400 (EDT) In-Reply-To: <87ipbqpkb7.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Thu, 06 Sep 2012 23:45:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63905 Archived-At: >>> > Yes. It looks like the "state cache" (a cache of certain brace, paren >>> > and bracket positions) has got corrupted. >>> > This is difficult to make repeatable, and is very dependent upon the >>> > exact navigation taken around the C buffer. >>> Well - my navigation triggers that bug a lot. >> It's strange that it doesn't seem to be happening much to other people. > It happens to me irregularly. There is generally no way to re-create > it, so I've stopped reporting these. I wish there were some way to > record all actions in c-mode buffers such that they could be saved and > re-played when this type of problem happens. If there were some sort of > debug flag I could turn on, I would turn it on by default and hopefully > be able to catch some useful information. If the problem happens while browsing a file (i.e. without any intervening buffer modifications), then a trace of calls to font-lock-default-fontify-region (but only those in the affected buffer) might do the trick. This said, I'm wondering why cc-mode's cache of parsing state is so fragile. Stefan