From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Emacs geometry Date: Mon, 31 Jul 2006 00:17:55 +0200 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 1154297997 25204 80.91.229.2 (30 Jul 2006 22:19:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 22:19:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 00:19:54 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 1G7JdZ-0000oG-HI for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 00:19:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7JdY-00089v-Lq for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 18:19:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7JdM-00088u-BE for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:19:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7JdK-000889-JZ for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:19:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7JdK-000880-CC for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:19:38 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7Jfq-0003Io-Pf for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:22:14 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id EE739FAC033; Mon, 31 Jul 2006 00:19:27 +0200 (CEST) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Sun, 30 Jul 2006 22:30:14 +0200") 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:57822 Archived-At: Ralf Angeli writes: > * 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))); Does this give correct results? printf ("top: %d, left: %d", XINT (XCDR (Fassq (Qtop, foo))), XINT (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 -- Kim F. Storm http://www.cua.dk