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