[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing
From: |
Yeracaris, Anthony |
Subject: |
Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery |
Date: |
Fri, 22 Nov 2002 17:07:41 -0500 |
Emacs 21.2 under X on Solaris
Executing (menu-bar-mode -1) and (tool-bar-mode -1) in .emacs causes the
frame to shrink by 3 lines. Restoring all frames to the original height
does not work, unless executed after .emacs completes.
Consider the following:
(defun set-frame-parameter-for-all-frames (attr value)
(mapc (lambda (frame)
(modify-frame-parameters frame (list (cons attr value))))
(frame-list))
(let ((elt (assq attr default-frame-alist)))
(if elt
(setcdr elt value)
(add-to-list 'default-frame-alist (cons attr value)))))
(let ((height (frame-parameter nil 'height)))
(tool-bar-mode -1)
(set-frame-parameter-for-all-frames 'height height)
(menu-bar-mode -1)
(set-frame-parameter-for-all-frames 'height height))
I note that the height is correct at this point (using princ), but once
.emacs finishes it becomes 3 lines smaller.
- Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery,
Yeracaris, Anthony <=