From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Trying to right-align my window on startup Date: Fri, 10 Jan 2014 19:07:09 -0800 (PST) Message-ID: <6334a43f-02cd-4e04-93d0-54bb41dc828f@default> References: <83r48idw6z.fsf@gnu.org> <83mwj5ekrs.fsf@gnu.org> <28ab7799-fdc5-47c4-9ac0-f7db66771e7e@default> <65e69797-8a7c-4d94-99c3-87d5a3c3ade6@default> 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 1389409658 21587 80.91.229.3 (11 Jan 2014 03:07:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2014 03:07:38 +0000 (UTC) To: Mickey Ferguson , "Emacs Help (help-gnu-emacs@gnu.org)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 11 04:07:43 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 1W1ovH-0007xs-3r for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 04:07:43 +0100 Original-Received: from localhost ([::1]:59916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ovG-0002T8-Km for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2014 22:07:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ouy-0002LN-1J for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 22:07:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1oup-0006e3-GQ for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 22:07:23 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:29173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1oup-0006dy-8r for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 22:07:15 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s0B37CjO001316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 11 Jan 2014 03:07:13 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0B37BNh004176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Jan 2014 03:07:12 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0B37Bso019542; Sat, 11 Jan 2014 03:07:11 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:95357 Archived-At: > Here is a very pared down file I'm calling minimal.el. OK. Putting paring that down further, it should be enough to put just this in your init file: (set-frame-font "-outline-Consolas-bold-r-normal-normal-12-90-96-96-c-*-iso10646-1") (set-frame-position (selected-frame) -1 0) What I see here (on MS Windows, like you) is that this does not work with Emacs 23.4 or 24.3. But it does work with recent Emacs 24 development snapshots (what will become Emacs 24.4). However, if I add a non-nil KEEP-SIZE argument for `set-frame-font' then it works in all three versions. That is: (set-frame-font "-outline-Consolas-bold-r-normal-normal-12-90-96-96-c-*-iso10646-1" t) ; <=3D=3D=3D=3D ADD THIS SECOND ARGUMENT (set-frame-position (selected-frame) -1 0) Seems like a bug has been fixed in the development version, but perhaps someone else has a different take on that or can suggest a workaround for the case where KEEP-SIZE is nil. Meanwhile, if you don't care about the size or number of lines and columns (and it sounds like you do not - you just want to set the font), then just add the `t' argument.