Preface: I disabled menu-bar-mode
and bound <mouse-3>
to menu-bar-open
, via (global-set-key [mouse-3] #'menu-bar-open)
With this configuration, how can I get help for menu-bar items?
(My ugly workaround now is to temporary enable menu-bar-mode
and call help with that enabled)
Problem is: pressing C-h k
and then mouse-3
brings description for menu-bar-open
.
What I'd like to get instead, is the same describe-key
behaviour as on C-<mouse2>
menus.
This should be done in a way, which does not break on emacs updates (i.e: redefining describe-key
seems to dangerous).
If there is no way to do above , how could I bind <mouse-3>
to open the menu-bar and get the desired help functionality?
Edit: Solution from Tobias is not complete, it does not show local-menu
and minor-mode-menus
. Function mouse-menu-bar-map
, which is called from menu-bar-open
collects them all.
Edit2: [C-down-mouse-3]
does what I expect, but I can't remap this with:
(global-set-key [mouse-3] (lookup-key (current-global-map) [C-down-mouse-3]))