emacs-devel
[Top][All Lists]
Advanced

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

Re: menu system in recent Emacs?


From: Ted Zlatanov
Subject: Re: menu system in recent Emacs?
Date: Wed, 02 May 2012 21:44:43 -0400
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)

On Thu, 03 May 2012 03:12:27 +0200 Thien-Thi Nguyen <address@hidden> wrote: 

TN> () Ted Zlatanov <address@hidden>
TN> () Wed, 02 May 2012 20:53:31 -0400

TZ>    I would really like it to show the list of choices immediately,
TZ>    as if the user pressed `TAB'.  Can that be fed into the
TZ>    function somehow as a synthetic keypress?

TN> (progn
TN>   (push ?\t unread-command-events)
TN>   (completing-read 
TN>    "CHOICE EXPLANATION\nChoose one: "
TN>    '("A" "B" "C" "D")))

Thank you, I didn't know about `unread-command-events'.  I'll use that code.

Ted




reply via email to

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