From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) Date: Wed, 5 Sep 2012 20:48:21 +0000 Message-ID: <20120905204821.GA3620@acm.acm> References: <87ehpbni8j.fsf@kfs-lx2.home.kfs> <503D4B11.6000501@cua.dk> <20120902211620.GA3824@acm.acm> <50447C94.2040402@cua.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346878448 2106 80.91.229.3 (5 Sep 2012 20:54:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2012 20:54:08 +0000 (UTC) Cc: 11749@debbugs.gnu.org To: Kim Storm Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 05 22:54:10 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 1T9Mbw-0006PG-4r for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2012 22:54:08 +0200 Original-Received: from localhost ([::1]:52651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Mbs-0003KW-Pe for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2012 16:54:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Mbp-0003K4-HF for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 16:54:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Mbo-0005pA-Kz for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 16:54:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Mbi-0005oq-0P; Wed, 05 Sep 2012 16:53:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9Mbp-0005Lb-VR; Wed, 05 Sep 2012 16:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 05 Sep 2012 20:54:01 +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.134687839020491 (code B ref 11749); Wed, 05 Sep 2012 20:54:01 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 5 Sep 2012 20:53:10 +0000 Original-Received: from localhost ([127.0.0.1]:41294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Maz-0005KS-Le for submit@debbugs.gnu.org; Wed, 05 Sep 2012 16:53:10 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:36871 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Maw-0005KJ-4b for 11749@debbugs.gnu.org; Wed, 05 Sep 2012 16:53:07 -0400 Original-Received: (qmail 66607 invoked by uid 3782); 5 Sep 2012 20:52:56 -0000 Original-Received: from acm.muc.de (pD951A816.dip.t-dialin.net [217.81.168.22]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 05 Sep 2012 22:52:52 +0200 Original-Received: (qmail 4829 invoked by uid 1000); 5 Sep 2012 20:48:21 -0000 Content-Disposition: inline In-Reply-To: <50447C94.2040402@cua.dk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:63808 Archived-At: Hello, Kim. On Mon, Sep 03, 2012 at 11:47:00AM +0200, Kim Storm wrote: > On 2012-09-02 23:16, Alan Mackenzie wrote: > > 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. [ .... ] > > I've not been able to reproduce it in that limited context. It looks > > like another bug in the state cache, and they're bastards. > Any way of clearing the cache? M-: c-state-cache-init. As a workaround, you could turn that into a command and bind it to a spare C-c C-. > > Might you have something unusual in your CC Mode config? > I have this: > (modify-syntax-entry ?_ "w" c-mode-syntax-table) That shouldn't be causing the current problem. > But otherwise, I don't seem to have any customizations ... only an > awkward programming style :-) Thanks for the config! -- Alan Mackenzie (Nuremberg, Germany).