all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* imenu not working properly in cc-mode
@ 2008-07-10 11:11 Joe Bloggs
  2008-07-10 19:06 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Bloggs @ 2008-07-10 11:11 UTC (permalink / raw)
  To: help-gnu-emacs

When I try to find a function using imenu in a c or c++ file containing several functions, 
emacs stops responding and starts eating all the cpu cycles.
If the c/c++ file has just a 'main' function it works but is a bit slow, and for R files
(in ESS mode) it seems to work fine.
What's going on, and how can I fix it? Anyone?


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

* Re: imenu not working properly in cc-mode
  2008-07-10 11:11 imenu not working properly in cc-mode Joe Bloggs
@ 2008-07-10 19:06 ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2008-07-10 19:06 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, Joe

Joe Bloggs <who@cares.invalid> wrote:
> When I try to find a function using imenu in a c or c++ file containing several functions, 
> emacs stops responding and starts eating all the cpu cycles.

> If the c/c++ file has just a 'main' function it works but is a bit slow, and for R files
> (in ESS mode) it seems to work fine.

> What's going on, and how can I fix it? Anyone?

OK, the C/C++ bit looks like mine, but I can't help you on R/ESS files,
whatever they might be.

So, first of all, could you provide a full bug report - basically a way
for somebody else to reproduce the problem.  It should be the sort of
recipe that a hyperactive 10 year old could follow.  Something like:

   Start Emacs with emacs -Q
   Load the file foo.c++ with C-x C-f /path/to/foo.c++
   Type M-x imenu <RET> bar <RET>
   Emacs hangs.

Please supply the file foo.c++, too.  Actually, if it happens in a C
file that would be easier to debug.  The smaller you can make this file,
the more it will be appreciated by the CC Mode maintainer (me).

If the bug happens from an Emacs without your own configurations, 

Also wanted is your CC Mode configuration: Just do C-c C-b from your
C/C++ buffer, and you get this in a template for the bug report.

VERSION NUMBERS ARE IMPORTANT!!!   M-x emacs-version and M-x c-version
will get them, but they'll be in the C-c C-b dump anyway.

Then send the thing to bug-cc-mode@gnu.org.

Look forward to hearing from you!

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2008-07-10 19:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 11:11 imenu not working properly in cc-mode Joe Bloggs
2008-07-10 19:06 ` Alan Mackenzie

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.