From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Emacs geometry Date: Sun, 30 Jul 2006 22:30:14 +0200 Organization: nil Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154291477 9551 80.91.229.2 (30 Jul 2006 20:31:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 20:31:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 30 22:31:13 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 1G7Hw6-0004Qp-Kg for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 22:30:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7Hw5-0006d6-Of for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 16:30:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7Hvu-0006cr-DC for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:30:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7Hvs-0006cf-Vu for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:30:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7Hvs-0006cc-PZ for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:30:40 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7HyO-0003Xq-7N for emacs-devel@gnu.org; Sun, 30 Jul 2006 16:33:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G7Hvb-0004Mk-Sf for emacs-devel@gnu.org; Sun, 30 Jul 2006 22:30:23 +0200 Original-Received: from p54a537cd.dip0.t-ipconnect.de ([84.165.55.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Jul 2006 22:30:23 +0200 Original-Received: from angeli by p54a537cd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Jul 2006 22:30:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p54a537cd.dip0.t-ipconnect.de Cancel-Lock: sha1:GpP9H7LB4VIH5z8OlL3i5c/O0hY= 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:57811 Archived-At: * Eli Zaretskii (2006-07-28) writes: >> > Sorry, this part was bad advice: you cannot look up left and top in >> > initial-frame-alist, >> >> Hm, couldn't one get the value from the Lisp level? > > Of course, you could: use `intern'. But I suspect that, by the time > w32_createwindow runs, the left and top frame parameters were already > removed from initial-frame-alist and put into the `top_pos' and > `left_pos' members of struct frame that is passed to w32_createwindow. > But please verify that, I could be wrong. 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? Thanks for the valuable hints so far. -- Ralf