[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs geometry
From: |
David Kastrup |
Subject: |
Re: Emacs geometry |
Date: |
Sun, 30 Jul 2006 22:33:19 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> 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)));
> 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?
Because a character cell is 8 pixels wide? If that is the reason, I
think it is a mistake: the +/- values obviously don't make sense other
than as pixel values.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: Emacs geometry, (continued)
- Re: Emacs geometry, Mathias Dahl, 2006/07/26
- Re: Emacs geometry, Jason Rumney, 2006/07/26
- RE: Emacs geometry, Drew Adams, 2006/07/25
- Re: Emacs geometry, Eli Zaretskii, 2006/07/25
- Re: Emacs geometry, Ralf Angeli, 2006/07/25
- Re: Emacs geometry, Eli Zaretskii, 2006/07/25
- Re: Emacs geometry, Eli Zaretskii, 2006/07/25
- Re: Emacs geometry, Ralf Angeli, 2006/07/27
- Re: Emacs geometry, Eli Zaretskii, 2006/07/28
- Re: Emacs geometry, Ralf Angeli, 2006/07/30
- Re: Emacs geometry,
David Kastrup <=
- Re: Emacs geometry, Eli Zaretskii, 2006/07/30
- Re: Emacs geometry, David Kastrup, 2006/07/30
- Re: Emacs geometry, Eli Zaretskii, 2006/07/30
- Re: Emacs geometry, Eli Zaretskii, 2006/07/30
- Re: Emacs geometry, Ralf Angeli, 2006/07/30
- Re: Emacs geometry, Eli Zaretskii, 2006/07/30
- Re: Emacs geometry, Ralf Angeli, 2006/07/30
- Re: Emacs geometry, Eli Zaretskii, 2006/07/30
- Re: Emacs geometry, Ralf Angeli, 2006/07/31
- Re: Emacs geometry, Eli Zaretskii, 2006/07/31