diff options
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; |