[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Going through a list using the minibuffer
From: |
Jean Louis |
Subject: |
Re: Going through a list using the minibuffer |
Date: |
Sun, 13 Jun 2021 23:02:46 +0300 |
User-agent: |
Mutt/2.0.7+183 (3d24855) (2021-05-28) |
* Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> [2021-06-13 22:49]:
> Yuri Khan wrote:
>
> >> Is like this good?
> >>
> >> (let* ((gkser '("alpha" "beta" "gamma"))
> >> (gksel (completing-read
> >> "Choose a Greek letter: " gkser nil t)))
> >> (message "gksel %s" gksel))
> >
> > Have you tried it? Does it work the way you want? If you
> > have and it does, why are you asking me?
>
> The code looks good to me but the names are perhaps a bit
> cryptic. This is Lisp, not C or Perl mind you...
Let's see (✿╹◡╹)
(defalias 'my 'let*)
(defalias '$input 'completing-read)
(defalias 'print$_ 'message)
(my (($gkser '("alpha" "beta" "gamma"))
($gksel ($input "Choose a Greek letter: " $gkser nil t)))
(print$_ "gksel %s" $gksel)) ⇒ "gksel beta"
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
- Going through a list using the minibuffer, arvid-harnack, 2021/06/12
- Re: Going through a list using the minibuffer, Emanuel Berg, 2021/06/12
- Going through a list using the minibuffer, arvid-harnack, 2021/06/13
- Re: Going through a list using the minibuffer, Yuri Khan, 2021/06/13
- Going through a list using the minibuffer, arvid-harnack, 2021/06/13
- Going through a list using the minibuffer, arvid-harnack, 2021/06/13
- Re: Going through a list using the minibuffer, Yuri Khan, 2021/06/13
- Re: Going through a list using the minibuffer, Emanuel Berg, 2021/06/13
- Re: Going through a list using the minibuffer,
Jean Louis <=
- Re: Going through a list using the minibuffer, Emanuel Berg, 2021/06/13
- Re: Going through a list using the minibuffer, Jean Louis, 2021/06/13