From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Trying to right-align my window on startup Date: Thu, 09 Jan 2014 22:30:50 +0200 Message-ID: <83k3e8dhj9.fsf@gnu.org> References: <83r48idw6z.fsf@gnu.org> <83mwj5ekrs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1389300793 4562 80.91.229.3 (9 Jan 2014 20:53:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 20:53:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mickey Ferguson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 09 21:53:20 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 1W1MbM-0001Ph-S2 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 21:53:16 +0100 Original-Received: from localhost ([::1]:53980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MGH-0002FJ-UY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2014 15:31:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MFo-0001zj-Kf for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:31:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1MFh-00042G-R2 for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:31:00 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1MFh-00041q-IX for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 15:30:53 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MZ500B00I2TEV00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 09 Jan 2014 22:30:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZ500BSBIBFEY10@a-mtaout20.012.net.il>; Thu, 09 Jan 2014 22:30:52 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:95318 Archived-At: > From: Mickey Ferguson > CC: "help-gnu-emacs@gnu.org" > Date: Thu, 9 Jan 2014 20:16:07 +0000 > > >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. That's why I said that the numbers will have to be computed, and that computation will need to take the screen dimensions into account. Where's the contradiction? what am I missing?