Function: context-menu-global
context-menu-global is a byte-compiled function defined in
mouse.el.gz.
Signature
(context-menu-global MENU CLICK)
Documentation
Populate MENU with submenus from the global menu.
Source Code
;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun context-menu-global (menu _click)
"Populate MENU with submenus from the global menu."
(run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
(define-key-after menu [separator-global] menu-bar-separator)
(map-keymap (lambda (key binding)
(when (consp binding)
(define-key-after menu (vector key)
(copy-sequence binding))))
(menu-bar-keymap (lookup-key global-map [menu-bar])))
menu)