|
From: | martin rudalics |
Subject: | bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size |
Date: | Thu, 25 Sep 2008 14:12:22 +0200 |
User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
> 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
[Prev in Thread] | Current Thread | [Next in Thread] |