[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to find commands run by menu?
From: |
kj |
Subject: |
Re: How to find commands run by menu? |
Date: |
Tue, 8 Dec 2009 22:13:51 +0000 (UTC) |
User-agent: |
nn/6.7.3 |
In <87638hb1uf.fsf@galatea.local> pjb@informatimago.com (Pascal J. Bourguignon)
writes:
> oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
> 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
> l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
> mV+hO/VvFAAAAABJRU5ErkJggg==
>X-Accept-Language: fr, es, en
>X-Disabled: X-No-Archive: no
>User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)
>Xref: panix gnu.emacs.help:180899
>kj <no.email@please.post> writes:
>> Is there any way to determine the exact command that gets run when
>> one invokes a particular menu item?
>Yes. You do that with C-h k and select the command in the menu.
I can't figure out how to do this when I'm in text mode. In text
mode, to select the command I want from the menu (File > Postscript
Print Region (B+W)), the entire keystroke sequence is M-` f 3. If
I prefix this sequence with C-h k, then the info command responds
with:
M-` runs the command tmm-menubar, which is an interactive compiled
Lisp function in `tmm.el'.
It is bound to M-`.
(tmm-menubar &optional X-POSITION)
Text-mode emulation of looking and choosing from a menubar.
See the documentation for `tmm-prompt'.
X-POSITION, if non-nil, specifies a horizontal position within the menu bar;
we make that menu bar item (the one at that position) the default choice.
So I never get to the point of querying the meaning of the last
keystroke of the sequence (3).
I also tried to hit C-h k after having hit M-` f but before hitting
3. In this case the info message is
3 runs the command tmm-shortcut, which is an interactive compiled Lisp
function in `tmm.el'.
It is bound to many ordinary text characters.
(tmm-shortcut)
Choose the shortcut that the user typed.
...which is not what I'm looking for.
Kynn