all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* imenu with cc-mode in emacs 22 (win32)
@ 2008-11-12 11:21 Rudolfo Ungern
  2008-11-12 12:58 ` Alan Mackenzie
       [not found] ` <mailman.133.1226494022.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Rudolfo Ungern @ 2008-11-12 11:21 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-18 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 11:21 imenu with cc-mode in emacs 22 (win32) Rudolfo Ungern
2008-11-12 12:58 ` Alan Mackenzie
     [not found] ` <mailman.133.1226494022.26697.help-gnu-emacs@gnu.org>
2008-11-13  1:45   ` Rudolfo Ungern
2008-11-13 11:26     ` Rudolfo Ungern
2008-11-17 18:58       ` Rudolfo Ungern
2008-11-18 15:57         ` Rudolfo Ungern

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.