[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Build-completion using imenu search hits

From: Drew Adams
Subject: RE: Build-completion using imenu search hits
Date: Mon, 25 May 2009 10:08:01 -0700

> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]