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: Thierry Volpiatto
Subject: Re: menu system in recent Emacs?
Date: Thu, 03 May 2012 08:25:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)

Thierry Volpiatto <address@hidden> writes:

> 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?
Ok, forget that, I understand what you want to do here.
This was not working in helm-mode, it is now fixed.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




reply via email to

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