widget-choose

widget-choose is a compiled Lisp function in `wid-edit.el'.

(widget-choose TITLE ITEMS &optional EVENT)

Choose an item from a list.

First argument TITLE is the name of the list.
Second argument ITEMS is a list whose members are either
(NAME . VALUE), to indicate selectable items, or just strings to
indicate unselectable items.
Optional third argument EVENT is an input event.

The user is asked to choose between each NAME from the items alist,
and the VALUE of the chosen element will be returned. If EVENT is a
mouse event, and the number of elements in items is less than
`widget-menu-max-size', a popup menu will be used, otherwise the
minibuffer.