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

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

RE: "Dynamic" Imenu


From: Drew Adams
Subject: RE: "Dynamic" Imenu
Date: Thu, 21 Aug 2008 21:48:56 -0700

> I am trying to write a major mode for language that's used at my
> workplace. Function-type blocks take the form
>    METHOD [methodName]
> Obviously, it's easy to write an imenu regexp for that line. However,
> "functions" associated with a certain window take the form
>    WINDOW [windowName] (windowObjectAssociatedWith)
> Two windows could have identically named windowObjects. I would like
> an imenu that looks something like this:
> Imenu
>   FunctionFoo1
>   FunctionFoo2
>   Window >
>     Window1 >
>       windowFunctionFoo1
>       windowFunctionFoo2
>    Window2 >
>       windowFunctionFoo1
>       windowFunctionFoo2

I don't have a concrete answer for you, but you might get some help for part of
it by looking at this code: http://www.emacswiki.org/cgi-bin/wiki/imenu%2b.el.
Maybe, maybe not.





reply via email to

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