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: which-func/imenu Date: Mon, 6 Aug 2012 19:38:55 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CC91F@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344281923 6688 80.91.229.3 (6 Aug 2012 19:38:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 19:38:43 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 21:38:42 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 1SyT8U-00051e-Fs for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 21:38:42 +0200 Original-Received: from localhost ([::1]:42735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyT8T-0001FJ-Fr for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 15:38:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyT8O-0001Eo-BN for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 15:38:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyT8N-0005Jz-By for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 15:38:36 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:31310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyT8N-0005JZ-8a for help-gnu-emacs@gnu.org; Mon, 06 Aug 2012 15:38:35 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Mon, 6 Aug 2012 15:38:56 -0400 Thread-Topic: which-func/imenu Thread-Index: Ac10Cw9XPJqYKSBoSQCk0SqnS2FBCg== 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:86223 Archived-At: Just what do I have to do to make which-function-mode aware of a new langua= ge? 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 t= he value (nil "procedure\\s-+\\(?1:[[:alnum:]]+\\)" 2) should do. But I hav= e been wrong one other time.) * I need to add the mode (as a symbol) to which-func-modes. 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