Using Emacs built from CVS source code on Windows XP, the frame created
using the following Emacs-Lisp code is positioned such that the
rightmost 7 pixels of the frame are off the right edge of the screen:
(make-frame '((width . 80) (height . 20) (top . 0) (left . -1)))
Those 7 pixels encompass the border of the Windows frame and some of
the
right fringe. This may have been caused by revision 1.220 of w32term.c
in which function x_calc_absolute_position() was changed:
revision 1.220
date: 2004/12/11 21:12:45; author: jhd; state: Exp; lines: +0 -30
* w32term.c (x_calc_absolute_position): Remove calculation of
difference between inner and outer window. Don't subtract difference
for left and top calculations.
The below patch solves the problem but it may not be optimal because it
simply subtracts 7 from the computed value of f->left_pos.