all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to set window size in .emacs and have that size respected?
@ 2009-01-13  9:45 WalterGR
  2009-01-13 16:03 ` Peter Dyballa
       [not found] ` <mailman.4768.1231862617.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: WalterGR @ 2009-01-13  9:45 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

end of thread, other threads:[~2009-01-14  9:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13  9:45 How to set window size in .emacs and have that size respected? WalterGR
2009-01-13 16:03 ` 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

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.