From: Alan Mackenzie <acm@muc.de>
To: Richard Stallman <rms@gnu.org>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: C mode fontification took 50 seconds
Date: 1 May 2007 20:39:01 +0200 [thread overview]
Message-ID: <20070501200009.GA1797@muc.de> (raw)
In-Reply-To: <E1Hhrla-0001VV-KF@fencepost.gnu.org>
Hi, Richard!
On Sat, Apr 28, 2007 at 02:35:30PM -0400, Richard Stallman wrote:
> Using the latest version of Emacs 22 files, in a 48-line Linux console,
> I visited the file xdisp.c and typed C-u 23402 C-n.
> Then I typed C-v and waited.
>
> After it had gone on for 30 seconds, I stopped the process and looked
> at it with GDB. xbacktrace gives c-syntactic-skip-backward,
> c-in-knr-argdecl, c-beginning-of-decl-1, further up
> c-beginning-of-defun, further up, c-parse-state,
> c-font-lock-complex-decl-prepare. This was called
> from font-lock-fontify-keywords-region.
> It looks like c-in-knr-argdecl has the infinite loop.
> After I continued, it eventually finished, but yuck!
> This is reproducible.
I don't have this problem.
I made a change to CC Mode on 2007-04-09 to make C-x n d
(`narrow-to-defun') and friends do the right thing. This involved
changing some macros; all users of the macros therefore needed
recompiling.
Here, again, is the recipe for recompiling the CC Mode sources:
(i) M-x byte-compile-file cc-defs.el. M-x load-file /path/cc-defs.elc
(ii) M-x byte-compile-file cc-langs.el. M-x load-file /path/cc-langs.elc
(iii) M-x byte-compile-file cc-engine.el. M-x load-file ../cc-engine.elc
(iv) M-x byte-compile-file cc-mode.el. M-x load-file ../cc-mode.elc
(v) compile and load cc-{awk,cmds}.el (no dependence on the other four
files).
Either do that, or recompile the entire lot off cc-*.el. If that
doesn't fix things, please say so.
--
Alan Mackenzie (Munich, Germany)
prev parent reply other threads:[~2007-05-01 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-28 18:35 C mode fontification took 50 seconds Richard Stallman
2007-04-30 1:38 ` Glenn Morris
2007-05-01 17:25 ` Richard Stallman
2007-05-02 0:13 ` Richard Stallman
2007-05-01 18:39 ` Alan Mackenzie [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070501200009.GA1797@muc.de \
--to=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.