From: Ralf Angeli <angeli@caeruleus.net>
Subject: Re: GNU Emacs no longer honours top and left parameters to make-frame
Date: Sun, 24 Sep 2006 21:48:48 +0200 [thread overview]
Message-ID: <ef6neu$hhh$1@sea.gmane.org> (raw)
In-Reply-To: ud59om5gd.fsf@gnu.org
* Eli Zaretskii (2006-09-22) writes:
>> From: Ralf Angeli <angeli@caeruleus.net>
>> 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
prev parent reply other threads:[~2006-09-24 19:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 4:42 GNU Emacs no longer honours top and left parameters to make-frame Krishnakumar B
2006-09-20 17:15 ` Ralf Angeli
2006-09-21 20:30 ` Ralf Angeli
2006-09-22 9:19 ` YAMAMOTO Mitsuharu
2006-10-07 19:28 ` Ralf Angeli
2006-10-07 20:10 ` Jason Rumney
2006-10-07 22:46 ` GNU Emacs no longer honours top and left parameterstomake-frame mituharu
2006-10-08 7:27 ` Ralf Angeli
2006-10-28 22:38 ` Ralf Angeli
2006-10-29 4:26 ` Eli Zaretskii
2006-10-29 11:10 ` Ralf Angeli
2006-11-04 12:21 ` Eli Zaretskii
2006-09-22 9:28 ` GNU Emacs no longer honours top and left parameters to make-frame Kim F. Storm
2006-09-24 20:02 ` Ralf Angeli
2006-09-22 12:49 ` Eli Zaretskii
2006-09-24 19:48 ` Ralf Angeli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ef6neu$hhh$1@sea.gmane.org' \
--to=angeli@caeruleus.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.