From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: set window size on init Date: Wed, 11 Nov 2009 20:31:51 +0200 Message-ID: <83r5s4oqug.fsf@gnu.org> References: <870a1e44-3904-487b-8d65-42ad53f5f3ec@w37g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1257965834 9709 80.91.229.12 (11 Nov 2009 18:57:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 18:57:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 11 19:57:07 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 1N8INK-00086N-Um for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 19:57:03 +0100 Original-Received: from localhost ([127.0.0.1]:37036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8INK-0005tB-Em for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 13:57:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8I1a-00081e-IW for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 13:34:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8I1W-0007vl-Km for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 13:34:34 -0500 Original-Received: from [199.232.76.173] (port=54094 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8I1W-0007vP-FO for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 13:34:30 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58751) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8I1W-0003oY-0W for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 13:34:30 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KSY00100JGBOW00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 20:33:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KSY00LTFJKCSY60@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 11 Nov 2009 20:33:48 +0200 (IST) In-reply-to: <870a1e44-3904-487b-8d65-42ad53f5f3ec@w37g2000prg.googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:69671 Archived-At: > From: Xah Lee > Date: Tue, 10 Nov 2009 11:57:14 -0800 (PST) > > i have, at the end of my .emacs this code: > > ; set window size to 100x58 chars. > (set-frame-size (selected-frame) 100 58) > > however, it doesn't work. > But eval-region the code itself would work. Does it help to run this from term-setup-hook or window-setup-hook? The reason for the inconsistency is that Emacs initializes the GUI display at some specific point during startup, and any customizations of the display before that point will generally be overridden.