imenu-choose-buffer-index

imenu-choose-buffer-index is a compiled Lisp function in `imenu.el'.

(imenu-choose-buffer-index &optional PROMPT ALIST)

Let the user select from a buffer index and return the chosen index.

If the user originally activated this function with the mouse, a mouse
menu is used. Otherwise a completion buffer is used and the user is
prompted with PROMPT.

If you call this function with index alist ALIST, then it lets the user
select from ALIST.

With no index alist ALIST, it calls `imenu--make-index-alist' to
create the index alist.

If `imenu-use-popup-menu' is nil, then the completion buffer
is always used, no matter if the mouse was used or not.

The returned value is of the form (INDEX-NAME . INDEX-POSITION).