From 1fe0333f4f77f58bf3112484ae39542e1e1ee267 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Sep 1994 20:09:49 +0000 Subject: [PATCH] (command-line): If initial X frame has a menu bar, mark menu-bar-mode as on. --- lisp/startup.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/startup.el b/lisp/startup.el index 6b646eed84..4de390c44a 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -313,6 +313,10 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.") (face-initialize)) (if (fboundp 'frame-initialize) (frame-initialize)) + ;; If frame was created with a menu bar, set menu-bar-mode on. + (if (and (eq window-system 'x) + (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) + (menu-bar-mode t)) (run-hooks 'before-init-hook) -- 2.39.2