From unknown Mon Jun 23 23:53:35 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1638: got "invalid-function imenu-progress-message" in objc-mode Reply-To: Meteor Liu , 1638@debbugs.gnu.org Resent-From: Meteor Liu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 19 Dec 2008 09:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 1638 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122967784732663 (code B ref -1); Fri, 19 Dec 2008 09:15:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Dec 2008 09:10:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBJ6UJox004563 for ; Thu, 18 Dec 2008 22:30:20 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDYsM-0001O0-Qz for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDYsL-0001MD-3L for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:18 -0500 Received: from [199.232.76.173] (port=43921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDYsK-0001M7-W7 for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:17 -0500 Received: from wf-out-1314.google.com ([209.85.200.172]:28929) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDYsI-0007g4-U3; Fri, 19 Dec 2008 01:30:16 -0500 Received: by wf-out-1314.google.com with SMTP id 28so845864wfc.24 for ; Thu, 18 Dec 2008 22:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:mime-version:from :to:cc:subject:date:user-agent:content-type; bh=w1YzUdMbJEPYnOF0WflAagLy4xnRrdNSmeJ+Kv7BcGs=; b=rE/vWjnTZ6qOOzBQTfWh+61CgnWy5+ZwnuFEqNm9LKlkpmsDnQ5s1xB4On37u2b/qL HZTOIshZTLLeOMuYSi5PvoFKPUW/gpetIg1sCuyKGKGoFSZa5gYdZP16Bk3ZFRB0SIvf xg9RjyNbMkK5HYQc/qPg6xh6gO8Vi27I23pGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:mime-version:from:to:cc:subject:date:user-agent :content-type; b=YMpjStGs3cs7Kzwc962xqirg26y6Q/cLTr2jja5sbJkmfx6pDlByOKJf90W/H/iT35 7YJfIWgzlKenPFFxdlid4hm7PtmTvgyLpbgM990/m5MaPyH4STZ6QEIFIVyk5mgJmSvD x2Ifl3s67qoT7jKmBBvi62HXKz034oZBxwy6A= Received: by 10.142.214.11 with SMTP id m11mr1175525wfg.125.1229668212862; Thu, 18 Dec 2008 22:30:12 -0800 (PST) Received: from appledemacbook ([221.201.78.80]) by mx.google.com with ESMTPS id 27sm18078504wfa.49.2008.12.18.22.30.03 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Dec 2008 22:30:11 -0800 (PST) Message-ID: <494b3f73.1b018e0a.6104.1a29@mx.google.com> MIME-Version: 1.0 From: Meteor Liu To: Cc: Date: Fri, 19 Dec 2008 14:30:02 +0800 (CST) User-Agent: Simple Mail 2.72 Content-Type: multipart/related; boundary=----------simplemail1229668202285 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) ------------simplemail1229668202285 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit hello, I use emacs23 to edit Objective-C files,
I opened a .m file, and run "imenu-add-member-index" command,
bug I got a error: invalid-function imenu-progress-message,
I checked cc-menus.el, in function cc-imenu-objc-function used imenu-progress-message,
but cc-menus.el didn't load imenu.
I add "(require 'imenu)" to cc-menus.el and byte-compile it, It works.

so I think cc-menus.el need load imenu to fix this.

------------simplemail1229668202285-- From rgm@gnu.org Fri Dec 19 17:00:03 2008 Received: (at control) by emacsbugs.donarmstrong.com; 20 Dec 2008 01:00:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBK100l3001759 for ; Fri, 19 Dec 2008 17:00:02 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LDqBU-0006eH-0r; Fri, 19 Dec 2008 19:59:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18764.17247.965185.748139@fencepost.gnu.org> Date: Fri, 19 Dec 2008 19:59:11 -0500 From: Glenn Morris To: control reassign 1638 emacs,cc-mode reassign 1644 emacs,w32 close 1545 From rgm@gnu.org Tue Feb 17 09:52:10 2009 Received: (at control) by emacsbugs.donarmstrong.com; 17 Feb 2009 17:52:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1HHq8ZE008111 for ; Tue, 17 Feb 2009 09:52:09 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LZU53-0008WO-VU; Tue, 17 Feb 2009 12:50:01 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18842.63689.889659.707874@fencepost.gnu.org> Date: Tue, 17 Feb 2009 12:50:01 -0500 From: Glenn Morris To: control Subject: control message tags 2303 moreinfo tags 2282 moreinfo unreproducible merge 1638 2357 reassign 2358 spam severity 2353 wishlist From unknown Mon Jun 23 23:53:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Meteor Liu Subject: bug#1638 closed by Juanma Barranquero (Re: bug#2357: imenu-add-menubar-index fails in Objective-C mode) Message-ID: References: <494b3f73.1b018e0a.6104.1a29@mx.google.com> X-Emacs-PR-Message: they-closed 1638 X-Emacs-PR-Package: emacs,cc-mode Reply-To: 1638@debbugs.gnu.org Date: Wed, 18 Feb 2009 09:30:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1234949406-22212-1" This is a multi-part message in MIME format... ------------=_1234949406-22212-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs,cc-mode package: #1638: got "invalid-function imenu-progress-message" in objc-mode It has been closed by Juanma Barranquero . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Juanma Barranquero by replying to this email. --=20 1638: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1638 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1234949406-22212-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1638-done) by emacsbugs.donarmstrong.com; 18 Feb 2009 09:24:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1I9OE6v020644 for <1638-done@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 01:24:15 -0800 Received: by ewy3 with SMTP id 3so2799621ewy.1 for <1638-done@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 01:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EQT1m8gmMvu7U7RraJvdovfDUKO+JGE8+xyL90YpFuE=; b=pDUDLFzhOyqQQpeBjXh7ydYr4wC+TwNNH8iq5y+bps33ohzOaWFJtbM9qM5vhdTb3D 9UNV89APd0D/YKMXbOxQhazgsudbtGb5vyv4yAiPF52CraLCYuVIeEsmA7mvzBx0Qw95 FfpsUZ2hyQSm3kjox69N8OakHyow3uDHhGYqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jDIGVeRrFSs5VkS4PRBLMHFkJ1xxiaPKU6rQbsxNC2GC+LU4WeNoqf795XpaDisF9P IJ7KBi5jJJgo4ui/4qtPrB751W79gv2ZWbqYJnUAZ2gGWrHkrrdOOBP87KLwIjEw5hlS XmlX8F3/vOgeqQNMdhPfb6h8C3vYnAOt4WLB4= MIME-Version: 1.0 Received: by 10.210.60.3 with SMTP id i3mr1319929eba.27.1234949048510; Wed, 18 Feb 2009 01:24:08 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Feb 2009 10:24:08 +0100 Message-ID: Subject: Re: bug#2357: imenu-add-menubar-index fails in Objective-C mode From: Juanma Barranquero To: Stefan Monnier Cc: 1638-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Wed, Feb 18, 2009 at 03:57, Stefan Monnier wrote: > Removing uses of cc-bytecomp-* is always a reason for rejoycing. Ok, installed. Juanma ------------=_1234949406-22212-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 19 Dec 2008 09:10:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBJ6UJox004563 for ; Thu, 18 Dec 2008 22:30:20 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDYsM-0001O0-Qz for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDYsL-0001MD-3L for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:18 -0500 Received: from [199.232.76.173] (port=43921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDYsK-0001M7-W7 for bug-gnu-emacs@gnu.org; Fri, 19 Dec 2008 01:30:17 -0500 Received: from wf-out-1314.google.com ([209.85.200.172]:28929) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDYsI-0007g4-U3; Fri, 19 Dec 2008 01:30:16 -0500 Received: by wf-out-1314.google.com with SMTP id 28so845864wfc.24 for ; Thu, 18 Dec 2008 22:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:mime-version:from :to:cc:subject:date:user-agent:content-type; bh=w1YzUdMbJEPYnOF0WflAagLy4xnRrdNSmeJ+Kv7BcGs=; b=rE/vWjnTZ6qOOzBQTfWh+61CgnWy5+ZwnuFEqNm9LKlkpmsDnQ5s1xB4On37u2b/qL HZTOIshZTLLeOMuYSi5PvoFKPUW/gpetIg1sCuyKGKGoFSZa5gYdZP16Bk3ZFRB0SIvf xg9RjyNbMkK5HYQc/qPg6xh6gO8Vi27I23pGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:mime-version:from:to:cc:subject:date:user-agent :content-type; b=YMpjStGs3cs7Kzwc962xqirg26y6Q/cLTr2jja5sbJkmfx6pDlByOKJf90W/H/iT35 7YJfIWgzlKenPFFxdlid4hm7PtmTvgyLpbgM990/m5MaPyH4STZ6QEIFIVyk5mgJmSvD x2Ifl3s67qoT7jKmBBvi62HXKz034oZBxwy6A= Received: by 10.142.214.11 with SMTP id m11mr1175525wfg.125.1229668212862; Thu, 18 Dec 2008 22:30:12 -0800 (PST) Received: from appledemacbook ([221.201.78.80]) by mx.google.com with ESMTPS id 27sm18078504wfa.49.2008.12.18.22.30.03 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Dec 2008 22:30:11 -0800 (PST) Message-ID: <494b3f73.1b018e0a.6104.1a29@mx.google.com> MIME-Version: 1.0 From: Meteor Liu To: Cc: Subject: got "invalid-function imenu-progress-message" in objc-mode Date: Fri, 19 Dec 2008 14:30:02 +0800 (CST) User-Agent: Simple Mail 2.72 Content-Type: multipart/related; boundary=----------simplemail1229668202285 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) ------------simplemail1229668202285 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit hello, I use emacs23 to edit Objective-C files,
I opened a .m file, and run "imenu-add-member-index" command,
bug I got a error: invalid-function imenu-progress-message,
I checked cc-menus.el, in function cc-imenu-objc-function used imenu-progress-message,
but cc-menus.el didn't load imenu.
I add "(require 'imenu)" to cc-menus.el and byte-compile it, It works.

so I think cc-menus.el need load imenu to fix this.

------------simplemail1229668202285-- ------------=_1234949406-22212-1-- From unknown Mon Jun 23 23:53:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Juanma Barranquero Subject: bug#2357 closed by Juanma Barranquero (Re: bug#2357: imenu-add-menubar-index fails in Objective-C mode) Message-ID: References: X-Emacs-PR-Message: they-closed 2357 X-Emacs-PR-Package: emacs,cc-mode Reply-To: 2357@debbugs.gnu.org Date: Wed, 18 Feb 2009 09:30:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1234949406-22212-3" This is a multi-part message in MIME format... ------------=_1234949406-22212-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs,cc-mode package: #1638: imenu-add-menubar-index fails in Objective-C mode It has been closed by Juanma Barranquero . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Juanma Barranquero by replying to this email. --=20 1638: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1638 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1234949406-22212-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1638-done) by emacsbugs.donarmstrong.com; 18 Feb 2009 09:24:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1I9OE6v020644 for <1638-done@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 01:24:15 -0800 Received: by ewy3 with SMTP id 3so2799621ewy.1 for <1638-done@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 01:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EQT1m8gmMvu7U7RraJvdovfDUKO+JGE8+xyL90YpFuE=; b=pDUDLFzhOyqQQpeBjXh7ydYr4wC+TwNNH8iq5y+bps33ohzOaWFJtbM9qM5vhdTb3D 9UNV89APd0D/YKMXbOxQhazgsudbtGb5vyv4yAiPF52CraLCYuVIeEsmA7mvzBx0Qw95 FfpsUZ2hyQSm3kjox69N8OakHyow3uDHhGYqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jDIGVeRrFSs5VkS4PRBLMHFkJ1xxiaPKU6rQbsxNC2GC+LU4WeNoqf795XpaDisF9P IJ7KBi5jJJgo4ui/4qtPrB751W79gv2ZWbqYJnUAZ2gGWrHkrrdOOBP87KLwIjEw5hlS XmlX8F3/vOgeqQNMdhPfb6h8C3vYnAOt4WLB4= MIME-Version: 1.0 Received: by 10.210.60.3 with SMTP id i3mr1319929eba.27.1234949048510; Wed, 18 Feb 2009 01:24:08 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Feb 2009 10:24:08 +0100 Message-ID: Subject: Re: bug#2357: imenu-add-menubar-index fails in Objective-C mode From: Juanma Barranquero To: Stefan Monnier Cc: 1638-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Wed, Feb 18, 2009 at 03:57, Stefan Monnier wrote: > Removing uses of cc-bytecomp-* is always a reason for rejoycing. Ok, installed. Juanma ------------=_1234949406-22212-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 17 Feb 2009 12:22:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.9 required=4.0 tests=FOURLA,FVGT_m_MULTI_ODD,GMAIL, HAS_PACKAGE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1HCMMDB022267 for ; Tue, 17 Feb 2009 04:22:24 -0800 Received: by ug-out-1314.google.com with SMTP id u2so183138uge.14 for ; Tue, 17 Feb 2009 04:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=gagkWOoSsRQn2SJgG+fhvclnK8cf2ohYqgzbjDSypR4=; b=uhQ3ZiKpZNRiMFA6e0h+zINFI2uCqsS+8wVGM8B8uo6MvvAqWMFPAmwYNGc7ccnhRU oMj9had+rt0q01sfQl6Rn0c7DUqYipQrZF0kqounvr3mLFyJ/PkzToGjbj0rO8xHj+sG BSbwj8JL2NXU+5ONVop25JMl2+f34GRfUa0BQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=JtTA+8HS1yxmGEbBNu6Tq8mCM+UqVGpptNT3+QkhNIpp6rUAPzdgw/3aysCFLfAG9J /vDW0HG5aHpywLUS8tHYgCaGCCIDbLL4cMe/GJJF0KTbW/pqLghybffDHmoZApb7BBY8 QiNXpVl+kWcMZuNKGq7I+pvToefov0xr3FiqM= MIME-Version: 1.0 Received: by 10.210.129.19 with SMTP id b19mr210573ebd.190.1234873341908; Tue, 17 Feb 2009 04:22:21 -0800 (PST) Date: Tue, 17 Feb 2009 13:22:21 +0100 Message-ID: Subject: imenu-add-menubar-index fails in Objective-C mode From: Juanma Barranquero To: Emacs Bug Tracker Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Package: emacs,cc-mode [This part is a bugfix] emacs -Q --visit nsfns.m --f imenu-add-menubar-index =3D> Error in menu-bar-update-hook: (invalid-function imenu-progress-messa= ge) The reason is that progmodes/cc-menus.el does (cc-bytecomp-defun imenu-progress-message) to avoid loading imenu.el, and then uses `imenu-progress-message' in Objective-C specific code (cc-imenu-objc-function). But it is a macro, so it fails. I think the best way to fix it is just removing the cc-bytecomp-defun and all calls to imenu-progress-message from cc-menus.el. That macro has been defined as a no-op since 2004-10-27 and I don't think it is worth jumping around hoops just to make cc-menus.el successfully define something that goes unused. [This part is not a bugfix, so not needed now] Additionally, there are useless calls to `imenu-progress-message' in imenu.el, erc/erc-imenu.el and net/smtp-mode.el. For the latter two, removing the macro calls would also remove the need to require imenu. Juanma 2009-02-17 Juanma Barranquero * progmodes/cc-menus.el (imenu-progress-message): Remove (bogus and useless) cc-bytecomp-defun. (cc-imenu-objc-function): Don't call `imenu-progress-message'. Don't let-bind unused variable `stupid'. Index: lisp/progmodes/cc-menus.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/progmodes/cc-menus.el,v retrieving revision 1.42 diff -u -2 -r1.42 cc-menus.el --- lisp/progmodes/cc-menus.el 17 Feb 2009 10:59:14 -0000 1.42 +++ lisp/progmodes/cc-menus.el 17 Feb 2009 11:51:30 -0000 @@ -48,5 +48,4 @@ (cc-bytecomp-defvar imenu-generic-expression) (cc-bytecomp-defvar imenu-create-index-function) -(cc-bytecomp-defun imenu-progress-message) =0C @@ -317,5 +316,4 @@ (classcount 0) toplist - stupid str str2 @@ -331,8 +329,6 @@ 'buffer-substring))) (goto-char (point-max)) - (imenu-progress-message stupid 0) ;; (while (re-search-backward cc-imenu-objc-generic-expression nil t) - (imenu-progress-message stupid) (setq langnum (if (match-beginning OBJC) OBJC @@ -386,5 +382,4 @@ methodlist nil)))) ;; - (imenu-progress-message stupid 100) (if (eq (car toplist) nil) (setq toplist (cdr toplist))) ------------=_1234949406-22212-3--