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: Re: imenu with cc-mode in emacs 22 (win32) Date: Wed, 12 Nov 2008 17:45:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <6ef4285e-5be0-4a3c-bf6b-5b8882060688@h5g2000yqh.googlegroups.com> References: <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 1226563125 22815 80.91.229.12 (13 Nov 2008 07:58:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 07:58:45 +0000 (UTC) Cc: bug-cc-mode@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 08:59:47 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 1L0X7B-0001MK-2X for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 08:59:45 +0100 Original-Received: from localhost ([127.0.0.1]:44735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0X63-0006ry-3L for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 02:58:35 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!postnews.google.com!h5g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: 91.19.73.181 Original-X-Trace: posting.google.com 1226540759 2781 127.0.0.1 (13 Nov 2008 01:45:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 13 Nov 2008 01:45:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h5g2000yqh.googlegroups.com; posting-host=91.19.73.181; 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.7.13) Gecko/20060410 Firefox/1.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164383 X-Mailman-Approved-At: Thu, 13 Nov 2008 02:57: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:59721 Archived-At: Hi Alan, thanks for your input. With the "debug-on-quit" option I could figure out that the problem is related with the org-mode that I am using. If I don't load org-mode, the imenu functionality is working also in the cc-mode. Here is the stack trace that I get when org-mode is loaded. Debugger entered--Lisp error: (quit) byte-code( ... ) org-show-context(org-goto) (lambda nil (org-show-context (quote org-goto)))() run-hooks(imenu-after-jump-hook) imenu(("dlgInputProc" . #)) call-interactively(imenu) execute-extended-command(nil) call-interactively(execute-extended-command) org-mode has version 5.23a, it is the one that comes within Emacs 22.3: org-version is a variable defined in `org.el'. Its value is "5.23a" I mentioned that I do not have these kind of problems when running emacs 21.3. I should add here that for the old emacs version I did download org-mode from the org-mode.org site and this is version 6.08c. I have tried now several c files, also small ones, and it doesn' seem to relate with the content or size of the c code file. Next step I try to do is to upgrade the org-mode related files to version 6.08 in emacs 22. Guess this would only be a question of placing the newer files into a elisp directory that comes in the path specification before the standard elisp library directories. I am happy to help to fix this issue (if this is a bug). I just need to understand a bit more how to file a bug. On Nov 12, 1:58 pm, Alan Mackenzie wrote: > [ Reply-To: set to bug-cc-m...@gnu.org ] > > > 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. > > The simplest ways are (setq debug-on-error t) and (setq debug-on-quit t). > The second one seems the most relevant here. After setting > debug-on-quit, get into the infinite loop and C-g it - this gets you into > the debugger, with a display of the calling stack. The debugger is > documented on the page "debugger" in the Elisp manual. > > -- > Alan Mackenzie (Nuremberg, Germany).