emacs-devel
[Top][All Lists]
Advanced

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

Re: GNU Emacs no longer honours top and left parameters to make-frame


From: Ralf Angeli
Subject: Re: GNU Emacs no longer honours top and left parameters to make-frame
Date: Sun, 24 Sep 2006 21:48:48 +0200

* Eli Zaretskii (2006-09-22) writes:

>> From: Ralf Angeli <address@hidden>
>> Date: Thu, 21 Sep 2006 22:30:47 +0200
>> 
>> * Ralf Angeli (2006-09-20) writes:
>> 
>> > * Krishnakumar B. (2006-09-20) writes:
>> >
>> >> The following code that I had in my .emacs no longer works, i.e., the top
>> >> and left values are not honoured by Emacs, and Emacs places my frames at
>> >> arbitrary locations on startup.
>> > [...]
>> >> |       (make-frame `((width  . 80)
>> >> |                     (left   . ,left)
>> >> |                     (top    . ,top)
>> >> |                     (height . ,height)
>> >> |                     (tool-bar-lines . 0))))
>> >
>> > I'll have a look ...
>> 
>> Hm, w32_createwindow would have to know these values.
>
> What values did you refer to here?

The values for the top and left positions.

>> But the only object explicitely passed to the function is the frame.
>> The frame struct contains top_pos and left_pos but we don't know
>> when we can use them.
>
> Can you describe the sequence of function calls that leads from
> make-frame to w32_createwindow,

frame.el:make-frame --> faces.el:x-create-frame-with-faces -->
w32fns.c:x-create-frame (last function to get parameters) -->
frame.c:make_frame --> w32fns.c:w32_window -->
w32fns.c:my_create_window (--> w32fns.c:w32_msg_pump) -->
w32fns.c:w32_createwindow

> and what happens with the params-alist
> passed to make-frame along the way?  Maybe then someone will have some
> ideas.

x-create-frame is the last function to get the parameters and they are
processed by the function.  The parameters for top and left positions
are not handled (yet), however.

Perhaps setting f->left_pos and f->top_pos and in addition a flag that
the values can be used would do the trick.  If I understand Mitsuharu
correctly, size_hints->flags could be used for this.

-- 
Ralf





reply via email to

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