all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* which-func/imenu
@ 2012-08-06 19:38 Doug Lewan
  2012-08-07  6:58 ` which-func/imenu Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Lewan @ 2012-08-06 19:38 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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.

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 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: which-func/imenu
  2012-08-06 19:38 which-func/imenu Doug Lewan
@ 2012-08-07  6:58 ` Andreas Röhler
  2012-08-07 12:51   ` which-func/imenu Doug Lewan
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2012-08-07  6:58 UTC (permalink / raw)
  To: help-gnu-emacs

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
>
>
>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: which-func/imenu
  2012-08-07  6:58 ` which-func/imenu Andreas Röhler
@ 2012-08-07 12:51   ` Doug Lewan
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Lewan @ 2012-08-07 12:51 UTC (permalink / raw)
  To: Andreas Röhler, help-gnu-emacs@gnu.org

Thanks. I'll give it a try.

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Andreas Röhler
> Sent: Tuesday, 2012 August 07 02:59
> To: help-gnu-emacs@gnu.org
> Subject: Re: which-func/imenu
> 
> 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
> >
> >
> >
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-07 12:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 19:38 which-func/imenu Doug Lewan
2012-08-07  6:58 ` which-func/imenu Andreas Röhler
2012-08-07 12:51   ` which-func/imenu Doug Lewan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.