[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: F10 → menu
From: |
John Ankarström |
Subject: |
Re: F10 → menu |
Date: |
Sun, 28 May 2017 15:24:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Jean-Christophe Helary <jean.christophe.helary@gmail.com> writes:
>> I found a similar setting today:
>>
>> (define-key global-map (kbd "C-<f2>")
>> (lambda ()
>> (interactive)
>> (x-popup-menu (list '(0 0) (selected-frame))
>> (mouse-menu-bar-map))))
>
> Weird, none of the menu item trigger anything regardless of whether I use only
> the keyboard or if I use the mouse.
> Only calling the items from the real menus does trigger something...
I looked at the documentation for `x-popup-menu':
> Pop up a deck-of-cards menu and return user’s selection.
<C-f2>, as defined above, would only return the user's selection
without executing it. For example, when selecting Help > Emacs
Tutorial, the following is returned:
> (help-menu emacs-tutorial)
I'm not sure on how you'd go about executing that, but I'm sure
there's a way.
- John
- F10 → menu, Jean-Christophe Helary, 2017/05/24
- Re: F10 → menu, Alexis, 2017/05/25
- Re: F10 → menu, Eli Zaretskii, 2017/05/25
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28
- Re: F10 → menu,
John Ankarström <=
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28
- Re: F10 → menu, John Ankarström, 2017/05/28
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28
- Re: F10 → menu, John Ankarström, 2017/05/28
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28
- Re: F10 → menu, John Ankarström, 2017/05/28
- Re: F10 → menu, John Ankarström, 2017/05/28
- Re: F10 → menu, Jean-Christophe Helary, 2017/05/28