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: emacs hangs in c++ font-lock-modeo Date: Sat, 16 Apr 2005 16:50:18 +0000 (GMT) Message-ID: References: Reply-To: Alan Mackenzie NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1113669915 29487 80.91.229.2 (16 Apr 2005 16:45:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2005 16:45:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 18:45:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMqPO-0002PX-LK for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 18:44:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMqT8-0005TG-3s for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 12:48:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMqT3-0005Pn-9G for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 12:48:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMqT1-0005OG-D7 for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 12:48:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMqT1-0005Nv-AE for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 12:48:23 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMqTo-000485-7E for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 12:49:13 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id QAA00288; Sat, 16 Apr 2005 16:50:19 GMT X-Sender: root@acm.acm Original-To: Dirk Farin In-Reply-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:11172 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:11172 [cc to bug-cc-mode@gnu.org added.] >>From d.s.farin@tue.nl Fri Apr 15 20:33:22 2005 > Hi, > I have got a C++ source file that causes "GNU Emacs 21.4.1" (current Debian > testing) to hang with 100% cpu. To reproduce the bug, load the attached > source file and turn font-lock-mode on in C++ mode. If you move the cursor > down, at some position, emacs will hang and accept no more keyboard inputs. Outch! That's nasty. I had that happen to me a couple of years ago. I know that everything will still be set up to their defaults, but could you perhaps give us some more details just the same: How powerful is your computer? (Processor speed in MHz or GHz). What version of CC Mode have you got? (M-x c-version) Did you start your session with "emacs -q --no-site-file"? (I.e. without your .emacs and any site-lisp.el loaded.) If not, do you still get the problem when you do? Does Emacs _always_ hang up, _usually_ hang up or _sometimes_ hang up? How long does it take after loading the file before it hangs? Does it free up if you leave it running 8 or 12 hours or more? How many other buffers have you got loaded at the same time, how big are they (a few kilobytes, or a few hundred kilobytes), what modes are they (other C++, perhaps)? What support mode are you using in font lock? (C-h v font-lock-support-mode). Probably jit-lock-mode, the default. Does the problem go away if you use lazy lock instead? (Do M-: (setq font-lock-support-mode 'lazy-lock-mode) before loading the buffer (or put the setq in your .emacs, or do the same thing in the pertinent customize buffer.)) Regards, Dirk [OT good news: My city council has just decided to use Debian as the replacement for MS-Windows on its several thousand desktop PCs. They're hoping to start rolling it out at the end of this year. :-] -- Alan Mackenzie (Munich, Germany)