From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: "Dynamic" Imenu Date: Thu, 21 Aug 2008 21:48:56 -0700 Message-ID: <003701c90412$631bd2a0$0200a8c0@us.oracle.com> References: <0b993bb6-6837-4747-a8d0-360405d0075c@x41g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219380652 5468 80.91.229.12 (22 Aug 2008 04:50:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 04:50:52 +0000 (UTC) To: "'Eric'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 06:51:44 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWOcg-0001ny-FM for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 06:51:42 +0200 Original-Received: from localhost ([127.0.0.1]:55110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWObi-0005sK-VZ for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 00:50:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWOb4-0005lo-Gs for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 00:50:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWOb1-0005ka-Q5 for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 00:50:00 -0400 Original-Received: from [199.232.76.173] (port=35667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWOb1-0005kM-C7 for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 00:49:59 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:45766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWOb0-0005Lw-Cc for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 00:49:59 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m7M4ngiq012589; Thu, 21 Aug 2008 22:49:43 -0600 Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m7LDnRMe025070; Thu, 21 Aug 2008 22:49:42 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt355.oracle.com with ESMTP id 11636790921219380538; Thu, 21 Aug 2008 21:48:58 -0700 Original-Received: from dradamslap1 (/69.181.100.12) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Aug 2008 21:48:58 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <0b993bb6-6837-4747-a8d0-360405d0075c@x41g2000hsb.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AckEDkbCPMZzgxk3RqKPrGx15OC3dAAA7z3Q X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56875 > 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.