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#10941: [24.0.93.3] cc-mode: error in message buffer when "typing fast", characters eaten Date: Thu, 29 Mar 2012 21:48:51 +0000 Message-ID: <20120329214851.GB2594@acm.acm> References: <201203042114.43740.pogonyshev@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1333057856 15005 80.91.229.3 (29 Mar 2012 21:50:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 21:50:56 +0000 (UTC) To: Paul Pogonyshev , 10941@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 23:50: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 1SDNF2-0001Sm-Nr for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 23:50:48 +0200 Original-Received: from localhost ([::1]:49492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNF1-0003mg-Tf for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 17:50:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNEy-0003mT-Lx for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 17:50:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDNEw-0006PT-Ve for bug-gnu-emacs@gnu.org; Thu, 29 Mar 2012 17:50:44 -0400 Original-Received: from [140.186.70.43] (port=38577 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDNEt-0006OU-NM; Thu, 29 Mar 2012 17:50:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDNjG-0008Ji-Br; Thu, 29 Mar 2012 18:22:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <201203042114.43740.pogonyshev@gmx.net> Resent-From: Alan Mackenzie 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:22: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.133305970631939 (code B ref 10941); Thu, 29 Mar 2012 22:22:02 +0000 Original-Received: (at 10941) by debbugs.gnu.org; 29 Mar 2012 22:21:46 +0000 Original-Received: from localhost ([127.0.0.1]:45409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDNiy-0008J4-Eg for submit@debbugs.gnu.org; Thu, 29 Mar 2012 18:21:46 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:20187 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDNiw-0008Iw-0t for 10941@debbugs.gnu.org; Thu, 29 Mar 2012 18:21:42 -0400 Original-Received: (qmail 45321 invoked by uid 3782); 29 Mar 2012 21:50:10 -0000 Original-Received: from acm.muc.de (pD95579D5.dip.t-dialin.net [217.85.121.213]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 29 Mar 2012 23:50:08 +0200 Original-Received: (qmail 3131 invoked by uid 1000); 29 Mar 2012 21:48:51 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:58302 Archived-At: Hi, Paul. Thanks for this report. I can reproduce the error. However, looking at the code, it "can't possibly happen". :-( A few questions: > 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? > * save the attached file as 'test.cpp' (it is quite large, but when I > tried to shorten it substantially, error disappeared); Aha! It's 3991 bytes long. I'm going to try a binary chop on the length. I have a strange feeling the threshold length of the file (before insertion of "/* ") will be 2048. > * start Emacs as 'emacs -Q test.cpp'; > * issue Elisp command right at the start of the buffer with M-: (this > emulates fast typing): > (progn (insert "/*") (insert " ")) > note that two separate inserts are essential, with one "/* " error > is not triggered; 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. Strangely, though, once this error has happened, it doesn't happen again in the same Emacs session, even if the buffer is killed and the file reloaded. > * observer the following error: > Debugger entered--Lisp error: (error "Invalid search bound > (wrong side of point)") > Full Emacs version: GNU Emacs 24.0.93.3 (x86_64-unknown-linux-gnu, > GTK+ Version 2.24.10) of 2012-02-25 on gonzo Paul -- Alan Mackenzie (Nuremberg, Germany).