# HG changeset patch
# User Richard M. Stallman <rms@gnu.org>
# Date 769385174 0
# Node ID 50a6cd8563b6e05b904c20323b879ff1d095587d
# Parent  83bd6547675c28e78e0407267e9beba8960b8a96
(menu-bar-mode): Preserve window height.

diff -r 83bd6547675c -r 50a6cd8563b6 lisp/menu-bar.el
--- a/lisp/menu-bar.el	Thu May 19 21:58:38 1994 +0000
+++ b/lisp/menu-bar.el	Thu May 19 22:06:14 1994 +0000
@@ -416,9 +416,12 @@
    ;; Apply it to existing frames.
    (let ((frames (frame-list)))
      (while frames
-       (modify-frame-parameters (car frames)
-				(list (cons 'menu-bar-lines
+       (let ((height (cdr (assq 'height (frame-parameters (selected-frame))))))
+	 (modify-frame-parameters (car frames)
+				  (list (cons 'menu-bar-lines
 					    (if menu-bar-mode 1 0))))
+	 (modify-frame-parameters (car frames)
+				  (list (cons 'height height))))
        (setq frames (cdr frames))))))
 
 (provide 'menu-bar)