From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: which-func/imenu Date: Tue, 07 Aug 2012 08:58:46 +0200 Message-ID: <5020BCA6.6040408@easy-emacs.de> References: <155DEC68569B714B86C2C7075F5EDA98268CC91F@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344322756 31197 80.91.229.3 (7 Aug 2012 06:59:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 06:59:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 08:59:17 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 1Sydl6-0003Tk-J5 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 08:59:16 +0200 Original-Received: from localhost ([::1]:56702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sydl5-0007zJ-P4 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 02:59:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sydkv-0007yl-N9 for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 02:59:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sydkr-0006Ar-OY for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 02:59:05 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:51336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sydkr-0006AZ-Er for help-gnu-emacs@gnu.org; Tue, 07 Aug 2012 02:59:01 -0400 Original-Received: from [192.168.178.27] (brln-4db9f4fe.pool.mediaWays.net [77.185.244.254]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M9AGP-1StMxK0u1F-00CQtB; Tue, 07 Aug 2012 08:58:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <155DEC68569B714B86C2C7075F5EDA98268CC91F@DAKIYA1.pegasus.local> X-Provags-ID: V02:K0:frRYrJ2oxnGvCJt10zu1IV+oLLQ6Proozl4HyzbHs9/ rtcAhhUYT0PPKun/ZV66AzFurDucShrMSb8Y5v3lMliGqEO41e 50VdR0GJpHPiDVZgh7LXaGYBHVgPDC4VUjIfYXqWQfM/NAVHX8 DszN/rWqQc/VTdiebIJhhsz4ACalKusZ0tjNRL5k/W2BAtkcld ed1ggcpimjP2lEcAfOdZHhf8oLvH2XlNqdNsqPGi6q3iT9oDt8 Tyd3rTP2wQJM7O30q3hN08X5NVLXoUXGnxF/X1Uf0noKHhiH1c nMDdhG7g76aNUnJsEGw0N+DPFe+zC1z+Bot+GP841mM7DQqIFI LtfFtr0TkeHzn+dlP9VJpoz9B6pIT/0sP+n4ngl1r X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.171 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:86232 Archived-At: 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. imenu--index-alist is in the center of things here. If it gets filled, which-func-modes should work right out of the box. > > 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 > > >