"Dynamic" Imenu
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
"Dynamic" Imenu         


Author: Eric
Date: Aug 21, 2008 08:21

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
So that the Window submenu has submenus, where each submenu is the
name of a window. ...
Show full article (1.13Kb)
2 Comments
RE: "Dynamic" Imenu         


Author: Drew Adams
Date: Aug 21, 2008 21:48

> 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
Show full article (0.82Kb)
no comments
Re: "Dynamic" Imenu         


Author: Scott Frazer
Date: Aug 22, 2008 07:10

Eric wrote:
> 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
> So that the Window submenu has submenus, where each submenu is the ...
Show full article (1.47Kb)
no comments