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#10941: [24.0.93.3] cc-mode: error in message buffer when "typing fast", characters eaten Date: Fri, 30 Mar 2012 01:11:05 +0300 Message-ID: <201203300111.05385.pogonyshev@gmx.net> References: <20120329214851.GB2594@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333059170 25256 80.91.229.3 (29 Mar 2012 22:12:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 22:12:50 +0000 (UTC) Cc: 10941@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 30 00:12: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 1SDNaJ-00066s-TA for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Mar 2012 00:12:48 +0200 Original-Received: from localhost ([::1]:51758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNaI-0007mo-US for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 18:12:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNaG-0007mb-8k for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 18:12:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDNaE-0002vh-AE for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 18:12:43 -0400 Original-Received: from [140.186.70.43] (port=38610 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNaB-0002uZ-E2; Thu, 29 Mar 2012 18:12:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDO4Y-0000Pr-8d; Thu, 29 Mar 2012 18:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 29 Mar 2012 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10941 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 10941-submit@debbugs.gnu.org id=B10941.13330609981539 (code B ref 10941); Thu, 29 Mar 2012 22:44:02 +0000 Original-Received: (at 10941) by debbugs.gnu.org; 29 Mar 2012 22:43:18 +0000 Original-Received: from localhost ([127.0.0.1]:45442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDO3p-0000Om-U6 for submit@debbugs.gnu.org; Thu, 29 Mar 2012 18:43:18 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47219) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SDO3o-0000Of-QU for 10941@debbugs.gnu.org; Thu, 29 Mar 2012 18:43:17 -0400 Original-Received: (qmail invoked by alias); 29 Mar 2012 22:11:46 -0000 Original-Received: from unknown (EHLO gonzo.localnet) [178.172.139.6] by mail.gmx.net (mp036) with SMTP; 30 Mar 2012 00:11:46 +0200 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX19gvtcL6S1gHhf5kSQ741FlPg0MujqRf7XCIiD1hB 3JQs8+dpahH17q User-Agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; ) In-Reply-To: <20120329214851.GB2594@acm.acm> X-Y-GMX-Trusted: 0 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:58304 Archived-At: Alan Mackenzie wrote: > > Sometimes (quite often) when opening a different syntax region --- a > > quoted string, or block comment --- in C++ mode, the first character > > after it gets eaten with some error message shown in the echo area. I > > managed to create a surefire (at least here) way to reproduce it. > > What exactly do you mean by "opening a different syntax region"? Do you > mean moving point into it, or scrolling to see it? Just typing, similarly to the testcase. When you quickly type an opening quote (") or inline comment starter (/*) and then instantly continue typing whatever is going to be inside, this error happens. Far from always, but often enough to be annoying. > OK. I have a suspicion it could be something like two > before-change-functions being invoked without the after-change-function > which should come between them. I have a different suspicion that sometimes cc-mode relies on data found in font-lock only and that data may or may not be present (or up to date) depending on how fast lazy font-locking happens. But of course you know the code better to decide if that is possible at all. Paul