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: Fri, 29 Jan 2010 11:18:23 +0000 Message-ID: <20100129111823.GA3272@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264765346 26205 80.91.229.12 (29 Jan 2010 11:42:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2010 11:42:26 +0000 (UTC) Cc: 5490@debbugs.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 Fri Jan 29 12:42:23 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 1NapEx-00088E-4z for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 12:42:19 +0100 Original-Received: from localhost ([127.0.0.1]:55964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NapEw-0002Rr-E7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 06:42:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NapCp-0001IL-Bv for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2010 06:40:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NapCj-0001Ej-TN for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2010 06:40:06 -0500 Original-Received: from [199.232.76.173] (port=59904 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NapCj-0001Ec-Ob for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2010 06:40:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52219) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NapCj-0006Vk-F6 for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2010 06:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Naold-0005MN-T1; Fri, 29 Jan 2010 06:12:01 -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: Fri, 29 Jan 2010 11:12:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5490 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5490-submit@debbugs.gnu.org id=B5490.126476350220584 (code B ref 5490); Fri, 29 Jan 2010 11:12:01 +0000 Original-Received: (at 5490) by debbugs.gnu.org; 29 Jan 2010 11:11:42 +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 1NaolJ-0005Lx-Mb for submit@debbugs.gnu.org; Fri, 29 Jan 2010 06:11:41 -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 1NaolH-0005Lq-2k for 5490@debbugs.gnu.org; Fri, 29 Jan 2010 06:11:40 -0500 Original-Received: (qmail 72135 invoked by uid 3782); 29 Jan 2010 11:11:35 -0000 Original-Received: from acm.muc.de (pD9E226D3.dip.t-dialin.net [217.226.38.211]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Fri, 29 Jan 2010 12:11:34 +0100 Original-Received: (qmail 3762 invoked by uid 1000); 29 Jan 2010 11:18:23 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.6 (--) Resent-Date: Fri, 29 Jan 2010 06:12:01 -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:34795 Archived-At: Hello, Jan, On Fri, Jan 29, 2010 at 10:02:17AM +0100, Jan =?UTF-8?Q?Dj=C3=A4rv wrote: > Hello. First thing, sorry about the annoyance this bug is causing. > This is one of those vague bug reports that aren't easy to reproduce. Hmm. It's also, unfortunately, one of these bug reports that are difficult to respond to in a helpful manner. > After using Emacs for some time (several hours, more than 4) and > editing many C++ and C files, indentating breaks down. This manifests > itself that most lines get indetated at column 0. Doing C-c c-s on > those lines shows topmost-intro. even if they should be inclass or > statement. "Most"? Any chance you could post a fragment of a buffer (say, 20 - 60 lines starting near a beginning of defun) with the syntactic analysis of each line (Use C-u C-c C-s on each line)? OK. Now some more details, please! (i) Have you ever noticed this bug happening on earlier Emacsen, in particular Emacs 23.1? (ii) Does this bug happen every time you use Emacs this long, or only sometimes? If the latter, how often (10%, 50%, 90%)? (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? 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? (v) What about indentation in a freshly loaded file? (vi) Will M-x c-mode or M-x c++-mode clear the problem? (vii) Does reverting (M-x revert-buffer) a file fix indentation? (viii) Does killing and reloading a file fix indentation? (ix) Does intentation gradually deteriorate at around 4 hours, or does it break suddenly? (x) Do all CC Mode buffers break at the same time, or is it a "creeping death"? I realise how tedious it is to reproduce the broken state, but answers to these questions might suggest a line of attack on the bug. Also, please post any further thoughts you've had about it. Just one other thing: Could you please post a dump of your CC Mode configuration (C-c C-b in a C(++) buffer). Thanks. > Restarting Emacs fixes everything. Well, that's one thing to be grateful for. :-) > Jan D. -- Alan Mackenzie (Nuremberg, Germany).