all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Yeracaris, Anthony" <Anthony.Yeracaris@omgeo.com>
Subject: Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery
Date: Fri, 22 Nov 2002 17:07:41 -0500	[thread overview]
Message-ID: <FD5A602E96DCD211BC5100A0C9E57F3F074D3F0C@tfsmamsg8.tfn.com> (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.

             reply	other threads:[~2002-11-22 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-22 22:07 Yeracaris, Anthony [this message]
2002-11-24 18:38 ` Disabliing menubar and toolbar in .emacs causes frame to shrink f orcing manual recovery Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FD5A602E96DCD211BC5100A0C9E57F3F074D3F0C@tfsmamsg8.tfn.com \
    --to=anthony.yeracaris@omgeo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.