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: imenu in a shell buffer? Date: Mon, 19 Dec 2005 14:54:24 -0800 Message-ID: References: <1135029976.330808.221230@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135033004 18103 80.91.229.2 (19 Dec 2005 22:56:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 22:56:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 23:56:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoTu5-0001Xi-Fp for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 23:54:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoTux-0005Ue-3e for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 17:55:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoTuf-0005UV-Sx for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 17:55:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoTue-0005UJ-CG for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 17:55:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoTue-0005UG-87 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 17:55:24 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EoTxf-0003AA-B9 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 17:58:31 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBJNDoew032584 for ; Mon, 19 Dec 2005 17:13:50 -0600 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBJMsRPn007224 for ; Mon, 19 Dec 2005 15:54:27 -0700 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw6-141-144-114-209.vpn.oracle.com [141.144.114.209]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jBJMsQ6G007216 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 19 Dec 2005 15:54:26 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1135029976.330808.221230@o13g2000cwo.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:32080 Archived-At: Can an imenu expression list be defined for a shell buffer? I running a looong series of tests that all begin with "msg: starting test xxx" and end with "msg: ending test xxx", etc.. Naturally, its easy to get lost and lose track of exactly which test I'm looking at. I was thinking I could define an imenu expression and then easily jump from one to another without too much trouble. Is that possible? I'm sure you can, but someone else will have to tell you how. I would think, however, that accessing a menu for this would be pretty slow. Why not just use `M-x occur RET msg: starting test', and then access the individual tests by clicking their start lines in buffer *Occur*. Instead of reopening the menu each time, just keep *Occur* open in its own window or frame, and use it whenever you want to visit or revisit a test. If you do decide to use `occur', one thing that I find helps to know where you've been is highlighting the line numbers of visited lines, in *Occur*. I have a library that does that as well as a few other things for `occur'. Description here: http://www.emacswiki.org/cgi-bin/wiki/OccurBuffer#ReplacePlus. Library here: http://www.emacswiki.org/cgi-bin/emacs/replace+.el. HTH.