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#5490: 23.1.91; CC Mode, after a while, everything is topmost-intro. Date: Tue, 9 Feb 2010 20:40:08 +0000 Message-ID: <20100209204008.GB2921__12878.3009517521$1265748755$gmane$org@muc.de> References: <20100129112201.GA3793@muc.de> <4B7158EF.6030009@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1265748754 14638 80.91.229.12 (9 Feb 2010 20:52:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2010 20:52:34 +0000 (UTC) Cc: 5490@debbugs.gnu.org, emacs-devel@gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 21:52:31 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 1Nex4O-0000YZ-RL for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 21:52:29 +0100 Original-Received: from localhost ([127.0.0.1]:46567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nex4O-0003MS-5Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 15:52:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nex4I-0003LQ-TH for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 15:52:22 -0500 Original-Received: from [199.232.76.173] (port=56325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nex4I-0003LC-Ir for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 15:52:22 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nex4H-0004j9-KR for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 15:52:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43232) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nex4H-0004in-2o for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 15:52:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NewmY-0002DO-Hy; Tue, 09 Feb 2010 15:34:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2010 20:34:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5490 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 5490-submit@debbugs.gnu.org id=B5490.12657475918491 (code B ref 5490); Tue, 09 Feb 2010 20:34:02 +0000 Original-Received: (at 5490) by debbugs.gnu.org; 9 Feb 2010 20:33:11 +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 1Newli-0002Cu-CG for submit@debbugs.gnu.org; Tue, 09 Feb 2010 15:33:10 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Newlg-0002Ck-Ci for 5490@debbugs.gnu.org; Tue, 09 Feb 2010 15:33:09 -0500 Original-Received: (qmail 51540 invoked by uid 3782); 9 Feb 2010 20:33:03 -0000 Original-Received: from acm.muc.de (pD9E50280.dip.t-dialin.net [217.229.2.128]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 09 Feb 2010 21:33:02 +0100 Original-Received: (qmail 5263 invoked by uid 1000); 9 Feb 2010 20:40:08 -0000 Content-Disposition: inline In-Reply-To: <4B7158EF.6030009@swipnet.se> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 09 Feb 2010 15:34:02 -0500 X-detected-operating-system: by monty-python.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:34987 Archived-At: Hi, Jan, Time for a top-post. ;-) All your answers to my questions are consistent with a bug in c-parse-state (don't ask!). I recently enhanced and severely optimised this routine (it contains a cache) to deal better with certain types of non-unusual source files. If this cache is getting corrupted, it could easily foul up a buffer's indentation. Would you try one more thing, please: when you reach this buggy state again, would you please do M-: (c-state-cache-init) , and tell me if this clears the buggy state. Thanks! On Tue, Feb 09, 2010 at 01:45:35PM +0100, Jan Djärv wrote: > Ok, here are some answers. > > Alan Mackenzie skrev: > > > >OK. Now some more details, please! > > > >(i) Have you ever noticed this bug happening on earlier Emacsen, in > > particular Emacs 23.1? > > No. > > >(ii) Does this bug happen every time you use Emacs this long, or only > > sometimes? If the latter, how often (10%, 50%, 90%)? > > 100%. If I just keep editing it eveentually breaks. > > >(iii) Do you think there might be any connection with some of the more > > unusual minor modes you've got switched on? Things like > > auto-encryption mode? > > > > No, this doesn't seem to have any effect. > > >When Emacs reaches this broken state: > >(iv) Are all C(++) buffers in this state, or only some? Any correlation > > with how many edits have been done on a buffer, or how long it's been > > loaded? > > It is a pre buffer breakage. One buffer usually gets borken first, while > the others are ok. It is the one that I've changed/edited the most in. > > >(v) What about indentation in a freshly loaded file? > > No problem. > > >(vi) Will M-x c-mode or M-x c++-mode clear the problem? > > Yes. > > >(vii) Does reverting (M-x revert-buffer) a file fix indentation? > > No. > > >(viii) Does killing and reloading a file fix indentation? > > Yes. > > >(ix) Does intentation gradually deteriorate at around 4 hours, or does it > > break suddenly? > > Suddenly. > > >(x) Do all CC Mode buffers break at the same time, or is it a "creeping > > death"? > > Only one at the time. > > > >Just one other thing: Could you please post a dump of your CC Mode > >configuration (C-c C-b in a C(++) buffer). Thanks. > > [ Dump appreciated! ] -- Alan Mackenzie (Nuremberg, Germany).