]> git.eshelyaron.com Git - emacs.git/commitdiff
Make tab bar option visible in the menu bar on NS
authorPo Lu <luangruo@yahoo.com>
Fri, 26 Nov 2021 05:33:39 +0000 (13:33 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 26 Nov 2021 05:33:39 +0000 (13:33 +0800)
* lisp/menu-bar.el (menu-bar-showhide-menu): Make
`showhide-tab-bar' visible on NS as well.

lisp/menu-bar.el

index 274f594f69e51ffa1e91218b846106a7a07aa54f..8c04e35a51feae739de9e625a2ad80b5e035d40f 100644 (file)
@@ -1347,14 +1347,13 @@ mail status in mode line"))
                               (frame-parameter (menu-bar-frame-for-menubar)
                                                'menu-bar-lines)))))
 
-    (unless (featurep 'ns)
-      (bindings--define-key menu [showhide-tab-bar]
-        '(menu-item "Tab Bar" toggle-tab-bar-mode-from-frame
-                    :help "Turn tab bar on/off"
-                    :button
-                    (:toggle . (menu-bar-positive-p
-                                (frame-parameter (menu-bar-frame-for-menubar)
-                                                 'tab-bar-lines))))))
+    (bindings--define-key menu [showhide-tab-bar]
+      '(menu-item "Tab Bar" toggle-tab-bar-mode-from-frame
+                  :help "Turn tab bar on/off"
+                  :button
+                  (:toggle . (menu-bar-positive-p
+                              (frame-parameter (menu-bar-frame-for-menubar)
+                                               'tab-bar-lines)))))
 
     (if (and (boundp 'menu-bar-showhide-tool-bar-menu)
              (keymapp menu-bar-showhide-tool-bar-menu))