[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:48:30 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Ralf Angeli <address@hidden>
>> 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:

         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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]