From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.help Subject: Re: how to set window starting coordinates? Date: Mon, 17 Jan 2005 09:45:45 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1105984388 1740 80.91.229.6 (17 Jan 2005 17:53:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2005 17:53:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 17 18:53:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cqb3m-0004Ia-00 for ; Mon, 17 Jan 2005 18:53:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqbFd-0007r2-Sl for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Jan 2005 13:05:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 67.151.52.10 Original-X-Trace: quimby.gnus.org 1105983934 17295 67.151.52.10 (17 Jan 2005 17:45:34 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 17 Jan 2005 17:45:34 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Original-Xref: shelby.stanford.edu gnu.emacs.help:127943 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23430 "Jesper Harder" wrote in message news:m2r7kn5vfd.fsf@Jesper-Harders-Computer.local... > "Mickey Ferguson" writes: > > > I'm using GNU Emacs 21.3.1 on Windows XP. Is there a way for me to set the > > location and size of the window when I first start it from the windows Start > > Menu (runemacs.exe)? > > See . This looks promising. From the FAQ: To reposition an Emacs frame using elisp, you can use the set-frame-position function. For example, to move the current frame to the offset (10, 30), you could use: (set-frame-position (selected-frame) 10 30) I also used M-x apropos on the set-frame-position, and it says this: (set-frame-position FRAME XOFFSET YOFFSET) Sets position of FRAME in pixels to XOFFSET by YOFFSET. This is actually the position of the upper left corner of the frame. Negative values for XOFFSET or YOFFSET are interpreted relative to the rightmost or bottommost possible position (that stays within the screen). Now what I want is to be able to specify my window (frame) to be up against the right-hand side of my screen. So I thought I would use (set-frame position (selected-frame) -0 0). Nope, it interprets -0 the same as 0. The best I could do was -1 0, which left a little space between my window and the edge of the screen. Is there any way to specify it flush-right? Or is this a bug where it should interpret -0 as meaning flush-right, but it's not?