From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) Date: Mon, 10 Sep 2012 08:18:51 -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> <20120908211451.GA22477@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347279592 7682 80.91.229.3 (10 Sep 2012 12:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 12:19:52 +0000 (UTC) Cc: 11749@debbugs.gnu.org, Kim Storm To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 14:19:54 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 1TB2y1-0000LL-5m for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 14:19:53 +0200 Original-Received: from localhost ([::1]:53503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB2xx-0005qe-Nw for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 08:19:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB2xs-0005pp-8m for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 08:19:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB2xm-0005YI-BG for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 08:19:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB2xb-0005WA-VE; Mon, 10 Sep 2012 08:19:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TB2y9-0003q3-Pe; Mon, 10 Sep 2012 08:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 10 Sep 2012 12: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.134727957414703 (code B ref 11749); Mon, 10 Sep 2012 12:20:01 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 10 Sep 2012 12:19:34 +0000 Original-Received: from localhost ([127.0.0.1]:51540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB2xh-0003p5-IH for submit@debbugs.gnu.org; Mon, 10 Sep 2012 08:19:34 -0400 Original-Received: from upton.red.cert.org ([192.88.209.60]:40023) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB2xe-0003ou-B3 for 11749@debbugs.gnu.org; Mon, 10 Sep 2012 08:19:32 -0400 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by upton.red.cert.org (8.14.4/8.14.4) with ESMTP id q8ACIqc5007790; Mon, 10 Sep 2012 08:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1347279532; bh=YPaZoRIu6DC3N5yG8r/Irod7SJI9kY3PJ8R4a7yJZl8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To; b=Xilt/EgIR0/bNsszSJnGFGRqbK0Tsi16b1brjtBQT1dD+MZcPcY1+Kz2JAyqWDeRJ WP8d0RPc243cJu/4QlZauvMZqdBOOa4tzjh63FMk5KNYg9+9nX1pK2Mfs1ljpO7Esy Nm2TlQ97prDXfu+bTl6WzCRpcvB8OTUHXmTbeZyQ= Original-Received: from waterbuck.yellow.cert.org (waterbuck.yellow.cert.org [10.20.128.84]) by bucknell.indigo.cert.org (8.14.4/8.14.4/2.81) with ESMTP id q8ACIqlZ010974; Mon, 10 Sep 2012 08:18:52 -0400 Original-Received: (from mwd@localhost) by waterbuck.yellow.cert.org (8.14.4/8.14.4/Submit/1.6) id q8ACIpjG024094; Mon, 10 Sep 2012 08:18:51 -0400 X-Authentication-Warning: waterbuck.yellow.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: <20120908211451.GA22477@acm.acm> (Alan Mackenzie's message of "Sat, 8 Sep 2012 21:14:51 +0000") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) 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:64033 Archived-At: Alan Mackenzie writes: > 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? It happens when I'm editing C code. I can't say once a week/day, etc., because I don't edit C code every day. Most days I don't see it at all. When it does happen, it is either extremely ephemeral (and goes away immediately), or happens frequently in the same file, and I have to reload the file completely just to get back to status quo. It's very hard to characterize. (It used to happen a lot more often before you fixed this in a few places.) >> 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. I will turn this on. -- Michael Welsh Duggan (mwd@cert.org)