[Top][All Lists]

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

Re: Emacs geometry

From: Eli Zaretskii
Subject: Re: Emacs geometry
Date: Tue, 25 Jul 2006 22:58:48 +0300

> From: Ralf Angeli <address@hidden>
> Date: Tue, 25 Jul 2006 20:55:35 +0200
> * Eli Zaretskii (2006-07-25) writes:
> > Sridhar Boovaraghavan reports that geometry specification in the
> > Registry is not honored.  If that is true, it's a bug that should be
> > fixed.  Could you please look into it?
> Sure.  But likely not today.


Here's what I saw in the code, that would perhaps help you.  When
Emacs sees -geometry, it puts the width and height parameters into
both default-frame-alist and initial-frame-alist, but top and left
only into initial-frame-alist.  (See w32-win.el: x-handle-geometry.)
Later, when w32_createwindow is called to create the initial frame, it
calls w32_get_arg to get the left and top coordinates, but it calls it
with the first argument Qnil.  When called with Qnil, w32_get_arg
looks inside default-frame-alist, but the left and top parameters are
not there.  So we use CW_USEDEFAULT instead.

The trick is to somehow recognize that this is the initial frame, and
then call w32_get_arg to look up left and top in initial-frame-alist,
not just in default-frame-alist.

reply via email to

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