GNU bug report logs - #1024
Large C++ files load slowly, regardless of font-lock-maximum-size

Previous Next

Packages: emacs, cc-mode;

Reported by: jw_spambox <at> yahoo.com

Date: Thu, 25 Sep 2008 06:15:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 1024 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: jw_spambox <at> yahoo.com, 1024 <at> debbugs.gnu.org
Subject: Re: bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size
Date: Thu, 25 Sep 2008 14:12:22 +0200
> 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://debbugs.gnu.org/cgi/bugreport.cgi?bug=851

and try the recipe proposed there by Chong Yidong?

martin





This bug report was last modified 16 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.