From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: WalterGR Newsgroups: gmane.emacs.help Subject: How to set window size in .emacs and have that size respected? Date: Tue, 13 Jan 2009 01:45:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <49f67ade-3c42-407d-9f5e-6220568036fc@o4g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231849473 16940 80.91.229.12 (13 Jan 2009 12:24:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2009 12:24:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 13:25:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LMiL2-0005ua-3S for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 13:25:44 +0100 Original-Received: from localhost ([127.0.0.1]:42318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMiJl-0001V0-Ku for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 07:24:25 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o4g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 75.45.102.12 Original-X-Trace: posting.google.com 1231839956 27882 127.0.0.1 (13 Jan 2009 09:45:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 Jan 2009 09:45:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o4g2000pra.googlegroups.com; posting-host=75.45.102.12; posting-account=Ut0WDQoAAABFlcXayfIPT8oJUeTymM4u User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165963 X-Mailman-Approved-At: Tue, 13 Jan 2009 07:20:57 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61293 Archived-At: 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