From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#5570: automatic cache validation Date: Thu, 18 Mar 2010 22:05:11 +0200 Message-ID: <201003182205.12157.pogonyshev@gmx.net> References: <000301caac36$0fc0b760$2f422620$@net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268943910 14450 80.91.229.12 (18 Mar 2010 20:25:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2010 20:25:10 +0000 (UTC) To: 5570@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 18 21:25:06 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 1NsMHB-0003g3-6y for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Mar 2010 21:25:05 +0100 Original-Received: from localhost ([127.0.0.1]:36522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsMHA-0002wA-L4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Mar 2010 16:25:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsMH5-0002tW-9Z for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2010 16:24:59 -0400 Original-Received: from [140.186.70.92] (port=41523 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsMH3-0002qv-RO for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2010 16:24:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsMH2-0002Q4-SS for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2010 16:24:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44658) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsMH2-0002Pz-PL for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2010 16:24:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NsM0g-0004fo-1E; Thu, 18 Mar 2010 16:08:02 -0400 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <000301caac36$0fc0b760$2f422620$@net> Resent-From: Paul Pogonyshev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Mar 2010 20:08:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5570 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 5570-submit@debbugs.gnu.org id=B5570.126894287217958 (code B ref 5570); Thu, 18 Mar 2010 20:08:01 +0000 Original-Received: (at 5570) by debbugs.gnu.org; 18 Mar 2010 20:07:52 +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 1NsM0W-0004fb-78 for submit@debbugs.gnu.org; Thu, 18 Mar 2010 16:07:52 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NsM0T-0004fW-4q for 5570@debbugs.gnu.org; Thu, 18 Mar 2010 16:07:50 -0400 Original-Received: (qmail invoked by alias); 18 Mar 2010 20:07:41 -0000 Original-Received: from unknown (EHLO gonzo.localnet) [91.149.173.2] by mail.gmx.net (mp058) with SMTP; 18 Mar 2010 21:07:41 +0100 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX18wX2YLEOUwa6JusyXQQ9omVLpqsGZPsrnQn4ArWQ 6VW7WBP3D08odi User-Agent: KMail/1.12.4 (Linux/2.6.29-2-686; KDE/4.3.4; i686; ; ) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.69999999999999996 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 18 Mar 2010 16:08:02 -0400 X-detected-operating-system: by eggs.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:35628 Archived-At: After March the 1st changes indentation in C++ and related modes is better, but it still breaks often enough --- to the tune of once every 3--5 minutes or so. Both when editing C++ and Java code. As I understand, the issue is that some cached information becomes wrong after certain (undetermined) buffer changes. Maybe it is better to write an automated cache validation code rather than search for a certain way to reproduce stuff? E.g. just build information from scratch and assert that cached information is the same. Ideally, such checks should be performed after every change, so that you'd be able to find which change exactly trigerred a bug. (Granted, this would make debugging version slow as hell, but with this rate of error occurence it's not like you'd need to run it for days.) Without automated error detection tools cc-mode is bound to have similar issues after every second non-trivial change. Paul