From: "Eric Schulte" <schulte.eric@gmail.com>
To: David O'Toole <dto1138@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: imenu support for babel blocks
Date: Tue, 20 Jul 2010 15:30:18 -0700 [thread overview]
Message-ID: <87wrspu6px.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTimCiay9zkLkB8SKbosrJAL8Ob01-aGt79hetnkz@mail.gmail.com> (David O'Toole's message of "Sat, 17 Jul 2010 16:57:53 -0400")
Hi David,
I've never used imenu myself, but that sounds useful. I'd recommend
using the following rather than building your own regexp
--8<---------------cut here---------------start------------->8---
(push (list "Source code chunks"
org-babel-src-name-w-name-regexp 2)
imenu-generic-expression)
--8<---------------cut here---------------end--------------->8---
You're right that the Org-mode imenu setup looks fairly complex, and is
probably overwriting your simple expression above. Unfortunately I
don't know much about imenu and I'm now sure how a code block menu fits
into the existing Org-mode imenu support.
Best -- Eric
"David O'Toole" <dto1138@gmail.com> writes:
> 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)
> _______________________________________________
> 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
next prev parent reply other threads:[~2010-07-20 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-17 20:57 imenu support for babel blocks David O'Toole
2010-07-18 4:01 ` [PATCH] Quote path argument in ob-ditaa Gregory J. Grubbs
2010-07-18 5:43 ` Patchwork: Patch 150 Accepted Carsten Dominik
2010-07-18 5:51 ` [PATCH] Quote path argument in ob-ditaa Carsten Dominik
2010-07-20 22:30 ` Eric Schulte [this message]
2010-12-01 16:17 ` imenu support for babel blocks Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wrspu6px.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=dto1138@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).