summaryrefslogtreecommitdiff
path: root/lisp/term/x-win.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/term/x-win.el')
-rw-r--r--lisp/term/x-win.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index fe774a4125f..967d9918b59 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -2393,6 +2393,12 @@ order until succeed.")
(kill-new clipboard-text))
(yank)))
+(defun x-menu-bar-open (&optional frame)
+ "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'."
+ (interactive "i")
+ (if menu-bar-mode (menu-bar-open frame)
+ (tmm-menubar)))
+
;;; Window system initialization.