Attached is a simple bugfix for tmm.el in Emacs. Currently when the top level menu is displayed (like when pressing F10), the menu entries are not in the same order as they are displayed in the menu bar. Additionally, clicking on any menu entry other than "Help" jumps straight into the menu clicked on, but clicking on "Help" displays the root menu.

Let me know if you need more details to reproduce the issues. In this case, I think the issues fixed are straightforward.

  -- MJF