From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: which-func/imenu Date: Tue, 7 Aug 2012 12:51:15 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CC9A5@DAKIYA1.pegasus.local> References: <155DEC68569B714B86C2C7075F5EDA98268CC91F@DAKIYA1.pegasus.local> <5020BCA6.6040408@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344343866 31863 80.91.229.3 (7 Aug 2012 12:51:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 12:51:06 +0000 (UTC) To: =?iso-8859-1?Q?Andreas_R=F6hler?= , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 14:51:06 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SyjFa-0005E6-9R for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 14:51:06 +0200 Original-Received: from localhost ([::1]:44031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyjFZ-0005Ro-Di for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 08:51:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyjFR-0005Ri-Nh for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 08:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyjFN-0004gP-Or for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 08:50:57 -0400 Original-Received: from mailhost.shubertorg.com ([207.246.209.200]:10254 helo=webmail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyjFN-0004gE-Ky for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 08:50:53 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Tue, 7 Aug 2012 08:51:15 -0400 Thread-Topic: which-func/imenu Thread-Index: Ac10Cw9XPJqYKSBoSQCk0SqnS2FBCgAgI5wAAAPnDhA= In-Reply-To: <5020BCA6.6040408@easy-emacs.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86234 Archived-At: Thanks. I'll give it a try. > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Andreas R=F6hler > Sent: Tuesday, 2012 August 07 02:59 > To: help-gnu-emacs@gnu.org > Subject: Re: which-func/imenu >=20 > Am 06.08.2012 21:38, schrieb Doug Lewan: > > Just what do I have to do to make which-function-mode aware of a new > language? I haven't been able to entirely disentangle the > documentation. > > > > I think I know the following. > > * I need imenu. > > * I have to create imenu-generic-expression. (My world is simple. I > think the value (nil "procedure\\s-+\\(?1:[[:alnum:]]+\\)" 2) should > do. But I have been wrong one other time.) > > * I need to add the mode (as a symbol) to which-func-modes. >=20 > imenu--index-alist is in the center of things here. > If it gets filled, which-func-modes should work right out of the box. >=20 >=20 > > > > This is, however, not enough to "support Imenu", in the words of > emacs Info section 26.2.4. > > What should I really be doing? > > > > ,Douglas > > Douglas Lewan > > Shubert Ticketing > > (201) 489-8600 ext 224 > > Optimism is an occupational hazard of programming: testing is the > treatment. - - K. Beck > > > > > > >=20