all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: WalterGR <waltergr@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to set window size in .emacs and have that size respected?
Date: Tue, 13 Jan 2009 01:45:55 -0800 (PST)	[thread overview]
Message-ID: <49f67ade-3c42-407d-9f5e-6220568036fc@o4g2000pra.googlegroups.com> (raw)

In my .emacs ("22.2.1 of 2008-09-05 on vernadsky, modified by Ubuntu")
I set the window size (after changing the default font size):

(set-frame-height (selected-frame) 71)
(set-frame-width (selected-frame) 100)

The width is respected, but the height is not.  During startup, it
first grows the height to 70.  (Hypothesis: 71 is a few pixels too
tall to fit vertically in the screen, so Emacs drops it down to 70.)
Some initialization text flashes at the bottom of the screen.  Then
the height is reduced to 67.

In fact, for any size <71, Emacs will always reduce it by 3.  e.g.
(set-frame-height (selected-frame) 60) will end up with the height
being 57.

How do I get Emacs to respect my chosen window height?

Thanks,

Walter


             reply	other threads:[~2009-01-13  9:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13  9:45 WalterGR [this message]
2009-01-13 16:03 ` How to set window size in .emacs and have that size respected? Peter Dyballa
     [not found] ` <mailman.4768.1231862617.26697.help-gnu-emacs@gnu.org>
2009-01-13 16:08   ` WalterGR
2009-01-13 16:17     ` WalterGR
2009-01-13 16:24       ` WalterGR
2009-01-14  9:50         ` Torben Knudsen

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=49f67ade-3c42-407d-9f5e-6220568036fc@o4g2000pra.googlegroups.com \
    --to=waltergr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.