From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: set window size on init Date: Tue, 10 Nov 2009 15:39:16 -0500 Organization: A noiseless patient Spider Message-ID: References: <870a1e44-3904-487b-8d65-42ad53f5f3ec@w37g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257886067 22437 80.91.229.12 (10 Nov 2009 20:47:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 20:47:47 +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 Nov 10 21:47:40 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 1N7xcp-0008Jj-Tt for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Nov 2009 21:47:40 +0100 Original-Received: from localhost ([127.0.0.1]:55121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7xcp-0006cY-EY for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Nov 2009 15:47:39 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 22 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+9MN1t6et4aGIe1kPFWlTdlNZjKyyoERadmcHBB6epAoMoWPge7Rz3XQMkQWmPxCRPuUNuTOR3mM3pi/PwomjHNgFT5mvH7ZHlYuECkh4reOLuoHSM5VzHmzQnJk1YWLyvnCHFxiJ5wRASTsozdfQR Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Tue, 10 Nov 2009 20:39:18 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19a8Rv5JXaoR7UIVPhgECGew6M+EcScvrX4IgFrIYQ04w== Cancel-Lock: sha1:7R59QJe0v/zVxyiZTiftvyhXX4g= sha1:3/OJ6KejtRGCyxsKM0Z0em+O0Hc= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174573 comp.emacs:99405 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:69645 Archived-At: Xah Lee writes: > 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. > > Anyone know why's that? I don't think you have a "selected-frame" while .emacs is being read. I don't see that in the documentation but under .emacs processing, it says it reads terminal specific stuff after it reads the .emacs: "Emacs runs the hook term-setup-hook at the end of initialization, after both your `.emacs' file and any terminal-specific library have been read in."