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: Sat, 8 Sep 2012 21:14:51 +0000 Message-ID: <20120908211451.GA22477@acm.acm> 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; charset=us-ascii X-Trace: ger.gmane.org 1347139186 23019 80.91.229.3 (8 Sep 2012 21:19:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 21:19:46 +0000 (UTC) Cc: 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 Sat Sep 08 23:19:48 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 1TASRP-00032Y-JN for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 23:19:47 +0200 Original-Received: from localhost ([::1]:42936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TASRL-0006O8-Va for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 17:19:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TASRH-0006NK-Vs for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 17:19:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TASRG-0004ir-TZ for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 17:19:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TASRE-0004hE-Pu; Sat, 08 Sep 2012 17:19:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TASRd-0005HJ-NG; Sat, 08 Sep 2012 17:20: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: Sat, 08 Sep 2012 21:20: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.134713919820276 (code B ref 11749); Sat, 08 Sep 2012 21:20:01 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 8 Sep 2012 21:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:49128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TASRZ-0005Gy-Nj for submit@debbugs.gnu.org; Sat, 08 Sep 2012 17:19:58 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:55527 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TASRW-0005Gq-P8 for 11749@debbugs.gnu.org; Sat, 08 Sep 2012 17:19:56 -0400 Original-Received: (qmail 5192 invoked by uid 3782); 8 Sep 2012 21:19:27 -0000 Original-Received: from acm.muc.de (pD951A487.dip.t-dialin.net [217.81.164.135]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 08 Sep 2012 23:19:25 +0200 Original-Received: (qmail 22603 invoked by uid 1000); 8 Sep 2012 21:14:51 -0000 Content-Disposition: inline In-Reply-To: <87ipbqpkb7.fsf@maru.md5i.com> 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:63979 Archived-At: Hello again, Michael! On Thu, Sep 06, 2012 at 11:45:48PM -0400, Michael Welsh Duggan wrote: > Alan Mackenzie writes: > > 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. > It happens to me irregularly. Once a week? Once a day? Is it associated with buffer changes, or does it just happen? > 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. M-x c-toggle-parse-state-debug (or (c-toggle-parse-state-debug 1) in your .emacs). Warning: variable `c-debug-parse-state' is not buffer local. I wrote this on 19th October last year to help sort out the bug you reported a little earlier. :-) It works by calculating c-parse-state twice for each call - The first time normally, then again with the internal state bound to "newly initialised". If the the two results differ, they are printed to *Messages*, together with the saved previous state. If this does trigger, please note any recent buffer changes. It may make editing intolerably slow. Kim, would you please try this out on a buffer you could actually send to me. Thanks! > -- > Michael Welsh Duggan > (md5i@md5i.com) -- Alan Mackenzie (Nuremberg, Germany).