(window-system): Enable menu bars only if
authorRichard M. Stallman <rms@gnu.org>
Sat, 5 Jun 1993 17:16:39 +0000 (17:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 5 Jun 1993 17:16:39 +0000 (17:16 +0000)
window-system is non-nil.

lisp/menu-bar.el

index e67fb70..0b0e694 100644 (file)
@@ -227,7 +227,8 @@ turn off menu bars; otherwise, turn on menu bars."
       (setq frames (cdr frames)))))
 
 ;; Make frames created from now on have a menu bar.
-(menu-bar-mode t)
+(if window-system
+    (menu-bar-mode t))
 
 (provide 'menu-bar)