[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: looking up a submenu keymap in a menu keymap, when the submenu key i
From: |
Stefan Monnier |
Subject: |
Re: looking up a submenu keymap in a menu keymap, when the submenu key is a string |
Date: |
Sun, 08 Oct 2006 21:02:56 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> (keymap "Variables"
> ("toto" "toto" lambda nil
> (interactive)
> (imenu--menubar-select
> '("toto" . #<marker at 37004 in foo.el>))))
> `lookup-key' doesn't seem to help here - at least I cannot just pass
> "Variables" as the key arg to it.
You can try to pass ["Variables"]. But it's really not that simple, since
you have to distinguish between the menu name and the "pseudo-key"
associated with it. In your examples, both are strings and they are equal,
but that's not necessarily the case.
You may want o check the easy-menu functions for that, tho they're not
always as "easy" to use as the name implies.
Stefan
- looking up a submenu keymap in a menu keymap, when the submenu key is a string, Drew Adams, 2006/10/08
- Re: looking up a submenu keymap in a menu keymap, when the submenu key is a string,
Stefan Monnier <=
- RE: looking up a submenu keymap in a menu keymap, when the submenu key is a string, Drew Adams, 2006/10/08
- Re: looking up a submenu keymap in a menu keymap, when the submenu key is a string, Stefan Monnier, 2006/10/09
- RE: looking up a submenu keymap in a menu keymap, when the submenu key is a string, Drew Adams, 2006/10/09
- Re: looking up a submenu keymap in a menu keymap, when the submenu key is a string, Stefan Monnier, 2006/10/09
- RE: looking up a submenu keymap in a menu keymap, when the submenu key is a string, Drew Adams, 2006/10/09