GNU bug report logs -
#10652
24.0.93; font-lock very slow for C++
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Mon, 30 Jan 2012 11:17:02 UTC
Severity: normal
Merged with 10886
Found in version 24.0.93
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #53 received at 10652 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Alan,
emacs hangs for hours. Luckily it only used one of my 4
processor cores, so I could leave it loading in the background.
This
is what I've done:
Open the file, in c++-mode, and scroll to
end-of-buffer (M->). The mouse cursor starts spinning, but the end of
buffer is not shown.
When I press C-g three times, the end of the
buffer is shown. The fontification looks correct.
When I go back to
beginning-of-buffer, same problem.
When I press M->, M-< several
times, I cannot recover with C-g and I need to kill emacs:-(
isearch
works fine with font-lock-mode disabled.
Even, depending on the
position in the buffer, it happens the command M-x font-lock-mode gives
the spinning mouse cursor. Again 3x C-g solves this.
So I can say
pretty sure, font-lock-mode is causing the "delay".
I've tested again
with the bazaar version of last friday.
My test file contains
something like this:
int ClassName::MethodAbc(void)
{
SOME_PRETEST_MACRO;
return TranslateResult(LibFunctionAbc(m_Member));
}
And this repeated for something like 20 times (of course with
different names, and with different parameters).
The macro is
something like:
#define SOME_PRETEST_MACRO if (!Ready()) return -1;
With this test file, I could easily reproduce the problem.
I hope
this can help investigating the issue.
Toon
On 2012-03-30 00:00,
Alan Mackenzie wrote:
> Hello, Toon.
>
> On Thu, Mar 29, 2012 at
09:46:03PM +0200, Toon Claes wrote:
>
>> Hi Alan,
>
>> About: (i) yes
I've tried that, emacs -Q didn't make a difference
>
> Worth knowing
[Message part 2 (text/html, inline)]
This bug report was last modified 13 years and 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.