From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.help Subject: initial window positioning Date: Tue, 15 Feb 2011 14:58:07 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CBCD63.CFAB136A" X-Trace: dough.gmane.org 1297886423 4848 80.91.229.12 (16 Feb 2011 20:00:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2011 20:00:23 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 16 21:00:19 2011 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.69) (envelope-from ) id 1PpnXm-000591-KA for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Feb 2011 21:00:10 +0100 Original-Received: from localhost ([127.0.0.1]:49835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpnMr-0005ZP-AO for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Feb 2011 14:48:53 -0500 Original-Received: from [140.186.70.92] (port=37312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpTqY-00065e-5s for help-gnu-emacs@gnu.org; Tue, 15 Feb 2011 17:58:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpTqW-0007fm-Ho for help-gnu-emacs@gnu.org; Tue, 15 Feb 2011 17:58:14 -0500 Original-Received: from mail.plantcml-eads.com ([67.151.52.7]:38518 helo=plantcml-eads.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpTqW-0007fb-7F for help-gnu-emacs@gnu.org; Tue, 15 Feb 2011 17:58:12 -0500 Original-Received: from ([172.16.4.102]) by mail.plantcml-eads.com with ESMTP id 8YS9KF1.13733213; Tue, 15 Feb 2011 14:56:31 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: initial window positioning Thread-Index: AcvNY8+xUf89pZ91To+bPKw5TzIbsw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 67.151.52.7 X-Mailman-Approved-At: Wed, 16 Feb 2011 14:45:28 -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:79163 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01CBCD63.CFAB136A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable When I start up emacs (currently on 21.3.1 on windows XP SP3), I have it set up so that its window (frame?) will align itself on the right-hand side of my screen, at full height. It almost does this, but not quite - it appears to be about 1 or 2 (pixels? Twips? Some unit of measure) to the left of the right-hand edge. My question - I don't know the emacs primitives or elisp, but maybe someone can tell me a simple way to take the current window (frame?) and move it one (unit) to the right of where it currently is? Or even better, maybe someone can fix my functions that I pasted below, that are executed upon startup? (Note that on my computer, emacs_alignment is set to right.) (defun big-font-mode () "Use larger font" (interactive) (set-default-font "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin") (set-frame-height (selected-frame) (-(max-lines) 6)) (fit-max-lines 6) (big-font-mode-fixup) ) (defun big-font-mode-fixup () "Use larger font" (interactive) (set-frame-width (selected-frame) 72) (set-frame-position (selected-frame) (if (equal (getenv "emacs_alignment") "right") -1 0) (if (equal (getenv "emacs_alignment") "bottom") -1 0)) ) Sadly, I do not have newsgroup access, so please CC me directly at MFerguson (at) PlantCML-EADS (dot) com. ------_=_NextPart_001_01CBCD63.CFAB136A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable initial window positioning

When I start up = emacs (currently on 21.3.1 on windows XP SP3), I have it set up so that its = window = (frame?) will align itself on the right-hand side of my screen, = at full height.  It almost does this, but not = quite it appears to be about 1 or 2 (pixels? Twips? Some = unit of measure) to the left of the = right-hand edge.

My = question I dont know the emacs primitives or elisp, but maybe someone = can tell me a simple way to take the current window (frame?) and = move it one = (unit) to the right of where it currently is?  Or even better, = maybe someone can fix my functions that I pasted below, = that are = executed upon startup?  (Note that on my computer, emacs_alignment is = set to right.)

(defun = big-font-mode ()

  = "Use larger font"

  = (interactive)

  = (set-default-font

   = "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin&q= uot;)

  = (set-frame-height (selected-frame) (-(max-lines) 6))

  = (fit-max-lines 6)

  = (big-font-mode-fixup)

  = )

(defun = big-font-mode-fixup ()

  = "Use larger font"

  = (interactive)

  = (set-frame-width (selected-frame) 72)

  = (set-frame-position (selected-frame)

         &n= bsp;            = (if (equal (getenv "emacs_alignment") "right") -1 = 0)

         &n= bsp;            = (if (equal (getenv "emacs_alignment") "bottom") -1 = 0))

  = )

Sadly, I do not have newsgroup access, so please CC me directly = at MFerguson (at) PlantCML-EADS (dot) com.

------_=_NextPart_001_01CBCD63.CFAB136A--