From: "Drew Adams" <drew.adams@oracle.com>
To: 'Nordlöw' <per.nordlow@gmail.com>, help-gnu-emacs@gnu.org
Subject: RE: Build-completion using imenu search hits
Date: Mon, 25 May 2009 10:08:01 -0700 [thread overview]
Message-ID: <72280665CB674C998AAEB6B1B377A605@us.oracle.com> (raw)
In-Reply-To: <13bc6545-754f-444c-adbc-a1fd6b004a8b@t21g2000yqi.googlegroups.com>
> How can I programmatically access the hits from the search done by imenu
`icicle-imenu' does what you want. If you want something similar, look at its
code, including the code for its more generic parent function, `icicle-search'.
Basically, use the imenu regexp to parse the buffer, giving you hit strings and
their locations. Use an alist of such hit+location pairs as the COLLECTION arg
for `completing-read'. Given the chosen hit string, look up the location and go
there.
prev parent reply other threads:[~2009-05-25 17:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 14:44 Build-completion using imenu search hits Nordlöw
2009-05-25 16:14 ` hugo
2009-05-25 17:08 ` Drew Adams [this message]
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72280665CB674C998AAEB6B1B377A605@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.com \
/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.
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).