From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs geometry Date: Sun, 30 Jul 2006 22:48:30 +0200 Message-ID: <854pwy7ra9.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154292538 12110 80.91.229.2 (30 Jul 2006 20:48:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 20:48:58 +0000 (UTC) Cc: Ralf Angeli , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 30 22:48:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7IDT-0006VO-As for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 22:48:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7IDS-0001OR-Eb for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 16:48:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7IDG-0001NA-1V for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:48:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7IDF-0001Ml-Lx for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:48:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7IDF-0001Mi-FE for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:48:37 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7IFl-0005HX-BA for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:51:13 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G7IDE-00087X-Kq; Sun, 30 Jul 2006 16:48:36 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B7BFA1C000B3; Sun, 30 Jul 2006 22:48:30 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sun, 30 Jul 2006 23:38:43 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57816 Archived-At: Eli Zaretskii writes: >> From: Ralf Angeli >> Date: Sun, 30 Jul 2006 22:30:14 +0200 >> >> Hm, something seems to be there. If I insert >> >> Lisp_Object foo = Qnil; >> foo = Fsymbol_value (intern ("initial-frame-alist")); >> if (CONSP (foo) && Fassq (Qtop, foo) && Fassq (Qleft, foo)) >> printf ("top: %d, left: %d", XCDR (Fassq (Qtop, foo)), >> XCDR (Fassq (Qleft, foo))); >> else >> printf ("no"); >> >> into `w32_createwindow' and call Emacs with -g 80x30+20+10 the output >> top: 80, left: 160 >> appears in the shell. Does anybody know why the output is eight times >> the input? > > Probably because -geometry is specified in character units, while top > and left are in pixels. (info "(emacs) Window Size X") Here is a list of the command-line options for specifying size and position of the initial Emacs frame: `-g WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]' `--geometry=WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]' Specify the size WIDTH and HEIGHT (measured in character columns and lines), and positions XOFFSET and YOFFSET (measured in pixels). This applies to all frames. Incidentally, is it correct that the offsets would apply to all frames? Seems somewhat impractical since it would let all frames open on the same location. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum