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: RE: Trying to right-align my window on startup Date: Thu, 9 Jan 2014 20:16:07 +0000 Message-ID: References: <83r48idw6z.fsf@gnu.org> <83mwj5ekrs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389298604 10101 80.91.229.3 (9 Jan 2014 20:16:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 20:16:44 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 09 21:16:51 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W1M21-0001OH-QN for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 21:16:45 +0100 Original-Received: from localhost ([::1]:53941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1M21-0004SB-5T for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 15:16:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1M1l-0004S3-ON for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:16:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1M1f-000850-PD for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:16:29 -0500 Original-Received: from mail.plantcml-eads.com ([67.151.52.7]:24824 helo=cassidiancommunications.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1M1W-000803-2l; Thu, 09 Jan 2014 15:16:14 -0500 Original-Received: from ([172.16.4.12]) by mail.cassidiancommunications.com with ESMTP with TLS id 8YS9KF1.26456413; Thu, 09 Jan 2014 12:16:09 -0800 Original-Received: from TEMCAS01.peinet.peinc.com ([::1]) by TEMCAS01.peinet.peinc.com ([::1]) with mapi id 14.02.0387.000; Thu, 9 Jan 2014 12:16:08 -0800 Thread-Topic: Trying to right-align my window on startup Thread-Index: AQHPDLdlRbFj07j3V0q8XEvV7E9P1Zp8c0CAgAA3FHA= In-Reply-To: <83mwj5ekrs.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.10.30] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 67.151.52.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95314 Archived-At: > [Let's not omit help-gnu-emacs from the addressees, ok?] Sorry... >Why don't you try doing this by modifying frame parameters (via >add-to-list) instead? This is how I set the position and dimensions >of my frame in my .emacs: > ? (add-to-list 'default-frame-alist '(top . 0)) > (add-to-list 'default-frame-alist '(left . 140)) > (add-to-list 'initial-frame-alist '(height . 52)) > (add-to-list 'default-frame-alist '(height . 50)) > >I understand that in your case the numbers will have to be computed >first, but that's just a minor variation, I think. The problem here is that I want a generic file that will work for multiple screen dimensions. A while ago I had tried going down the path you have suggested here and just didn't know all of the screen parameters, nor how to convert from one unit type to another. That's why the -1 was used, as an attempt at using emacs' knowledge of the screen's right edge location.