help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Going through a list using the minibuffer


From: Yuri Khan
Subject: Re: Going through a list using the minibuffer
Date: Sun, 13 Jun 2021 22:09:45 +0700

On Sun, 13 Jun 2021 at 20:55, <arvid-harnack@lavache.com> wrote:

> Suppose I define a list namely '("alpha" "beta" "gamma")
>
> I would like to get the minibuffer to show me the options one by
> one as the down and up arrow keys are pressed.  Then in my
> function I get the equivalent position "k" of the string in the
> list.

You basically want ‘(completing-read "Choose a Greek letter: "
'("alpha" "beta" "gamma") nil t)’, except that it will give you the
selected option value rather than its index.



reply via email to

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