From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David O'Toole" Subject: imenu support for babel blocks Date: Sat, 17 Jul 2010 16:57:53 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1633137487==" Return-path: Received: from [140.186.70.92] (port=48472 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaESN-0004RB-1i for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 16:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaESL-0003e4-SF for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 16:57:58 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:65508) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaESL-0003dU-NP for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 16:57:57 -0400 Received: by wyj26 with SMTP id 26so3609382wyj.0 for ; Sat, 17 Jul 2010 13:57:53 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist --===============1633137487== Content-Type: multipart/alternative; boundary=0016e64c16e0d795b3048b9b96af --0016e64c16e0d795b3048b9b96af Content-Type: text/plain; charset=ISO-8859-1 I tried the following to get an Imenu composed of babel blocks, so that you could browse/jump to blocks. But it doesn't seem to work, I'm guessing that something about how org-mode builds the imenu-generic-expression overwrites my entry. Is there a hook (or could there be a hook added) that allows me to imenu-ify more constructs? (push (list "Source code chunks" "^#\\+\\(source:\\|srcname:\\|function:\\) \\(.*\\)$" 2) imenu-generic-expression) --0016e64c16e0d795b3048b9b96af Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I tried the following to get an Imenu composed of babel blocks, so tha= t you could browse/jump to blocks. But it doesn't seem to work, I'm= guessing that something about how org-mode builds the imenu-generic-expres= sion overwrites my entry. Is there a hook (or could there be a hook added) = that allows me to imenu-ify more constructs?

=A0=A0(push (list "Source code chunks" "= ^#\\+\\(source:\\|srcname:\\|function:\\) \\(.*\\)$" 2)
=A0= =A0 =A0 =A0 =A0imenu-generic-expression)

--0016e64c16e0d795b3048b9b96af-- --===============1633137487== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1633137487==--