unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: jw_spambox@yahoo.com, 1024@emacsbugs.donarmstrong.com
Subject: bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size
Date: Thu, 25 Sep 2008 14:12:22 +0200	[thread overview]
Message-ID: <48DB8026.4040201@gmx.at> (raw)
In-Reply-To: <133132.36158.qm@web56505.mail.re3.yahoo.com>

 > 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







  reply	other threads:[~2008-09-25 12:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25  6:07 bug#1024: Large C++ files load slowly, regardless of font-lock-maximum-size John W
2008-09-25 12:12 ` martin rudalics [this message]
2008-09-26  3:22   ` John W
2008-09-26  7:53     ` Alan Mackenzie
     [not found] <mailman.19905.1222335141.18990.bug-gnu-emacs@gnu.org>
2008-09-25 12:53 ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48DB8026.4040201@gmx.at \
    --to=rudalics@gmx.at \
    --cc=1024@emacsbugs.donarmstrong.com \
    --cc=jw_spambox@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).