[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: menu system in recent Emacs?
From: |
Thierry Volpiatto |
Subject: |
Re: menu system in recent Emacs? |
Date: |
Thu, 03 May 2012 07:21:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) |
Thien-Thi Nguyen <address@hidden> writes:
> () Ted Zlatanov <address@hidden>
> () Wed, 02 May 2012 20:53:31 -0400
>
> I would really like it to show the list of choices immediately,
> as if the user pressed `TAB'. Can that be fed into the
> function somehow as a synthetic keypress?
>
> That would be:
>
> (progn
> (push ?\t unread-command-events)
> (completing-read
> "Here are some choices:\n- A\t- B\n- C\t- D\nChoose one: "
> '("A" "B" "C" "D")))
>
> which can now be simplified to:
>
> (progn
> (push ?\t unread-command-events)
> (completing-read
> "CHOICE EXPLANATION\nChoose one: "
> '("A" "B" "C" "D")))
I think you want to use cons instead of push here, what you want is
(t . event) like described in doc, isn't it?
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- Re: menu system in recent Emacs?, (continued)
- Re: menu system in recent Emacs?, Tassilo Horn, 2012/05/02
- Re: menu system in recent Emacs?, Ted Zlatanov, 2012/05/02
- Re: menu system in recent Emacs?, Eric Schulte, 2012/05/02
- Re: menu system in recent Emacs?, Ted Zlatanov, 2012/05/02
- Re: menu system in recent Emacs?, Thien-Thi Nguyen, 2012/05/02
- Re: menu system in recent Emacs?, Ted Zlatanov, 2012/05/02
- Re: menu system in recent Emacs?, Thien-Thi Nguyen, 2012/05/02
- Re: menu system in recent Emacs?, Ted Zlatanov, 2012/05/02
- Re: menu system in recent Emacs?,
Thierry Volpiatto <=
- Re: menu system in recent Emacs?, Thierry Volpiatto, 2012/05/03
- Re: menu system in recent Emacs?, Thien-Thi Nguyen, 2012/05/03
- Re: menu system in recent Emacs?, Thierry Volpiatto, 2012/05/03
- Re: menu system in recent Emacs?, Stefan Monnier, 2012/05/03
- Re: menu system in recent Emacs?, Stefan Reichör, 2012/05/03
- Re: menu system in recent Emacs?, Ted Zlatanov, 2012/05/03
- Re: auth-source change default spec, Tim Cross, 2012/05/03