Function: tab-bar-menu-bar

tab-bar-menu-bar is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(tab-bar-menu-bar EVENT)

Documentation

Pop up the same menu as displayed by the menu bar.

Used by tab-bar-format-menu-bar.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-menu-bar (event)
  "Pop up the same menu as displayed by the menu bar.
Used by `tab-bar-format-menu-bar'."
  (interactive "e")
  (let ((menu (make-sparse-keymap (propertize "Menu Bar" 'hide t))))
    (run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
    (map-keymap (lambda (key binding)
                  (when (consp binding)
                    (define-key-after menu (vector key)
                      (copy-sequence binding))))
                (menu-bar-keymap))
    (popup-menu menu event)))