emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs geometry


From: Ralf Angeli
Subject: Re: Emacs geometry
Date: Sun, 30 Jul 2006 23:09:33 +0200

* Eli Zaretskii (2006-07-30) writes:

>> From: Ralf Angeli <address@hidden>
>> Date: Sun, 30 Jul 2006 22:30:14 +0200
>> 
>>   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.
>
> Interesting.  And what is the value of f->param_alist at that point?

I've got no idea.  As far as I understand f->param_alist has the same
structure as initial-frame-alist.  But if I try to get the values for
top and left with stuff like XCDR (Fassq (Qtop, f->param_alist)), all
I get are (identical) addresses as it seems.  For example
top: 18179347, left 18179347
If I try to dereference those with * I get an error during compile.

BTW, I don't get any output if I try to use macros like XCDR or XCAR
with gdb.  Am I doing something wrong?  As far as I understood the
manual of gdb it should be able to handle those.

-- 
Ralf





reply via email to

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