From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rudolfo Ungern Newsgroups: gmane.emacs.help Subject: imenu with cc-mode in emacs 22 (win32) Date: Wed, 12 Nov 2008 03:21:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <55935300-52c8-4641-a644-01c6d06e4362@z28g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226492003 29834 80.91.229.12 (12 Nov 2008 12:13:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 12:13:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 12 13:14:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0Eby-0008MP-CT for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2008 13:14:18 +0100 Original-Received: from localhost ([127.0.0.1]:47102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0Eaq-0003NR-Ca for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2008 07:13:08 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!postnews.google.com!z28g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 217.233.226.31 Original-X-Trace: posting.google.com 1226488892 21934 127.0.0.1 (12 Nov 2008 11:21:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 12 Nov 2008 11:21:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z28g2000prd.googlegroups.com; posting-host=217.233.226.31; posting-account=_2B5uQkAAACXsxZ4zz2oS2Cz-mjnHCwY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 dslrouter.ctilabs.internal:3128 (squid/2.6.STABLE5) Original-Xref: news.stanford.edu gnu.emacs.help:164349 X-Mailman-Approved-At: Wed, 12 Nov 2008 07:12:49 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59686 Archived-At: 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