Mercurial > emacs
diff lisp/menu-bar.el @ 7569:50a6cd8563b6
(menu-bar-mode): Preserve window height.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 19 May 1994 22:06:14 +0000 |
parents | 9c6abdf5541a |
children | 7259e377c81f |
line wrap: on
line diff
--- 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)