From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size Date: Thu, 25 Sep 2008 14:12:22 +0200 Message-ID: <48DB8026.4040201@gmx.at> References: <133132.36158.qm@web56505.mail.re3.yahoo.com> Reply-To: martin rudalics , 1024@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222345873 14053 80.91.229.12 (25 Sep 2008 12:31:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 12:31:13 +0000 (UTC) To: jw_spambox@yahoo.com, 1024@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 14:32:08 2008 connect(): Connection refused 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.50) id 1Kiq0e-0002VB-T3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 14:31:53 +0200 Original-Received: from localhost ([127.0.0.1]:46787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kipzc-0005xK-IQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 08:30:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kipz5-0005hB-CA for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 08:30:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kipz3-0005gW-J5 for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 08:30:14 -0400 Original-Received: from [199.232.76.173] (port=41761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kipz3-0005gP-Da for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 08:30:13 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57123) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kipz2-0006pb-IL for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2008 08:30:13 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8PCTsf1007711; Thu, 25 Sep 2008 05:29:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8PCP4os006635; Thu, 25 Sep 2008 05:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Thu, 25 Sep 2008 12:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1024 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 1024-submit@emacsbugs.donarmstrong.com id=B1024.12223450485256 (code B ref 1024); Thu, 25 Sep 2008 12:25:04 +0000 Original-Received: (at 1024) by emacsbugs.donarmstrong.com; 25 Sep 2008 12:17:28 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8PCHKsf005248 for <1024@emacsbugs.donarmstrong.com>; Thu, 25 Sep 2008 05:17:22 -0700 Original-Received: (qmail invoked by alias); 25 Sep 2008 12:17:14 -0000 Original-Received: from 62-47-40-37.adsl.highway.telekom.at (EHLO [62.47.40.37]) [62.47.40.37] by mail.gmx.net (mp065) with SMTP; 25 Sep 2008 14:17:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19K+mkBMelKflpC1mP1ZfcdZgu1JafQDfFTyRMBud 0/smMnpmxihHWo User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <133132.36158.qm@web56505.mail.re3.yahoo.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 25 Sep 2008 08:30:14 -0400 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:20763 Archived-At: > I used edebug to see what emacs was doing, and it gave me a stack like: > > c-literal-limits() > c-neutralize-syntax-in-CPP(1 3527391 3527390) > funcall(c-neutralize-syntax-in-CPP 1 3527391 3527390) > (if nil c-before-font-lock-function (funcall c-before-font-lock-function (point-min) (point-max) (- ... ...))) > (save-excursion (if c-get-state-before-change-function (funcall c-get-state-before-change-function ... ...)) (if nil c-before-font-lock-function (funcall c-before-font-lock-function ... ... ...))) > (save-restriction (widen) (save-excursion (if c-get-state-before-change-function ...) (if nil c-before-font-lock-function ...))) > c-common-init(c++-mode) > c++-mode() > set-auto-mode-0(c++-mode nil) > set-auto-mode() > normal-mode(t) > after-find-file(nil t) > > I blame c-before-font-lock-function . Could you please have a look at the description of bug#851 http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=851 and try the recipe proposed there by Chong Yidong? martin