all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery
@ 2002-11-22 22:07 Yeracaris, Anthony
  2002-11-24 18:38 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Yeracaris, Anthony @ 2002-11-22 22:07 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery
  2002-11-22 22:07 Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery Yeracaris, Anthony
@ 2002-11-24 18:38 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-11-24 18:38 UTC (permalink / raw)
  Cc: bug-gnu-emacs

This is a known problem, but nobody knows how to fix it.
It would probably require an X expert to redesign that
part of Emacs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-24 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 22:07 Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery Yeracaris, Anthony
2002-11-24 18:38 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.