From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Fineman Newsgroups: gmane.emacs.help Subject: Re: Can't set font & frame properly in .emacs Date: Sun, 28 Dec 2008 15:06:55 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230496855 2018 80.91.229.12 (28 Dec 2008 20:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 20:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 28 21:42:02 2008 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 1LH2SU-0000x8-Va for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 21:41:59 +0100 Original-Received: from localhost ([127.0.0.1]:54342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LH2RH-00052h-Fh for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 15:40:43 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 80 Original-X-Trace: news.eternal-september.org U2FsdGVkX19gn4+uMOb4778majkcBdZH0RsPKM1MUky+DenTCPhYphrgIUSmzGUBbu80ashHQvriDtXnsjagA3TBdtrs1uFlNorIwMHXGr0us/MRo7a6aLayFjR6SWLEcQ7N1YSEeD4= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 28 Dec 2008 20:07:01 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+BtA2IQpDr0bHqukNvhrgZhxub2TsgXCQ= Cancel-Lock: sha1:yk3rjrTSzagkBRjU3BO315e83eg= sha1:bzDOA0BA4kghOBgt5aLDBr+hXKg= User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) Original-Xref: news.stanford.edu gnu.emacs.help:165621 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:60952 Archived-At: Some further data: Joe Fineman writes: > I run Emacs under (sigh) Windows XP. Before I upgraded to Emacs > 22.3.1, the following near the beginning of my .emacs file always had > the right effect: > > ---------------------------------------------------------------------- > ;;;;INITIAL SETUP > > (setq inhibit-default-init t) > > (defun minimize-frame () > (interactive) > (w32-send-sys-command #xf020)) > > (defun maximize-frame () > (interactive) > (w32-send-sys-command #xf030)) > > (defun restore-frame () > (interactive) > (w32-send-sys-command #xf120)) > > (defun screen-saver () > (interactive) > (w32-send-sys-command #xf140)) > > ;; start Emacs maximized > (maximize-frame) > > ;; Font > ;; For a list of available Fonts, eval > ;; (insert (prin1-to-string (x-list-fonts "*"))) > (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-96-96-c-*-iso8859-13") > > ;; Set rows and columns correctly > (set-frame-width (selected-frame) 155) > ;; This is where height on screen is finally set: > (set-frame-height (selected-frame) 63) ;changed from 62 07oc08 > ---------------------------------------------------------------------- > > Now, however, the startup seems to skip it. The defuns are not > evaluated (tho I can eval them by hand & they work). This, for some reason, is no longer true. They are in fact evaluated. > The frame does not come up maximized, Nor does it come up in the default size that "restore" restores to, but in a squarish shape, from which it is impossible to maximize it either with the mouse (no button) or with maximize-frame (name recognized & completed under M-x, but has no effect). Using restore-frame makes it smaller, and from that state it is possible to maximize it. Sporadically, tho, restore-frame gives a very tall rectangle, spilling off the bottom of the screen so that the minibuffer is invisible. I have not been able to reproduce this. Also, if I minimize the frame, and bring it back with the mouse, it comes up maximized. > and the point size is too big. I added the first line in case there > was a default-init lurking somewhere. I tried repeating this > section at the end of .emacs in case something in between was > undoing it. I could find nothing about this aspect initialization > using info, and I cannot remember where I got the present code -- > probably from some long-departed helpful soul on a newsgroup. > What has changed? > > Thank you for your attention. -- --- Joe Fineman joe_f@verizon.net ||: In damp heat, learn from the Pygmies. In dry heat, learn :|| ||: from the Arabs. :||