[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
imenu with cc-mode in emacs 22 (win32)
From: |
Rudolfo Ungern |
Subject: |
imenu with cc-mode in emacs 22 (win32) |
Date: |
Wed, 12 Nov 2008 03:21:32 -0800 (PST) |
User-agent: |
G2/1.0 |
Hi,
i switched to emacs-22.3 recently and have a problem with speedbar/
imenu
in cc-mode. When I try to navigate with imenu to a function emacs eats
up
all the CPU resources and is not responding anymore.
Imenu is working with perl files (with perl-mode) with sql files, but
not with
cc mode. No matter if it is c++ or plain c code.
It must be something in my .emacs, because navigating in the same
source
files with imenu works if I skip my .emacs (that is: start emacs as
another user)
On the other hand the same .emacs file works find with emacs-21.3 and
imenu.
(of course i use some different code depending on the emacs version,
but that
does not affect imenu nor cc-mode.
It seems like the imenu related lisp code runs in some never-ending
loop.
I guess it would help me a lot, if I can have some hints how to
activate the
elisp debugger.
I know that this post is pretty vague, but the alternative would have
been to
paste 400 lines of the .emacs into this post.
I usually use
(add-hook 'c-mode-common-hook 'my-c-mode-hook)
in my .emacs file, with some indentation adjustments in my-c-mode-
hook.
but even if I deactivate this add-hook expression I still run in the
problem with
imenu.
The other suspected piece of code is in customization:
(custom-set-variables
;
'(imenu-sort-function (quote imenu--sort-by-name)))
but commenting it out, doesn't help either.
If someone knows what areas have changed in imenu from emacs21 to
emacs22, that could give me a hint where to search for the root of
the problem.
Thanks, Rolf
- imenu with cc-mode in emacs 22 (win32),
Rudolfo Ungern <=