help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which-func/imenu


From: Andreas Röhler
Subject: Re: which-func/imenu
Date: Tue, 07 Aug 2012 08:58:46 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]