diff options
| author | Richard M. Stallman | 1994-05-25 09:20:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-25 09:20:10 +0000 |
| commit | 10bba2660f47b72a1afdced9a50cbd1217089c6d (patch) | |
| tree | 31ed90835d37250a5d4d1a45c4e6c1a0a0c86561 /src | |
| parent | 84f4e2168f12f97db4b0d03242f12a18948bf190 (diff) | |
| download | emacs-10bba2660f47b72a1afdced9a50cbd1217089c6d.tar.gz emacs-10bba2660f47b72a1afdced9a50cbd1217089c6d.zip | |
(menu_item_equiv_key): Look for equiv keys both before
and after one stage of symbol function indirection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 056ae04dd41..ba92c90787f 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -331,6 +331,13 @@ menu_item_equiv_key (item_string, item1, descrip_ptr) | |||
| 331 | changed = 1; | 331 | changed = 1; |
| 332 | descrip = Qnil; | 332 | descrip = Qnil; |
| 333 | savedkey = Fwhere_is_internal (def, Qnil, Qt, Qnil); | 333 | savedkey = Fwhere_is_internal (def, Qnil, Qt, Qnil); |
| 334 | /* If the command is an alias for another | ||
| 335 | (such as easymenu.el and lmenu.el set it up), | ||
| 336 | see if the original command name has equivalent keys. */ | ||
| 337 | if (SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function)) | ||
| 338 | savedkey = Fwhere_is_internal (XSYMBOL (def)->function, | ||
| 339 | Qnil, Qt, Qnil); | ||
| 340 | |||
| 334 | if (VECTORP (savedkey) | 341 | if (VECTORP (savedkey) |
| 335 | && EQ (XVECTOR (savedkey)->contents[0], Qmenu_bar)) | 342 | && EQ (XVECTOR (savedkey)->contents[0], Qmenu_bar)) |
| 336 | savedkey = Qnil; | 343 | savedkey = Qnil; |