emacs-pretest-bug
[Top][All Lists]
Advanced

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

RE: Same frame-positioning bug as before: negative top/left values on Wi


From: Drew Adams
Subject: RE: Same frame-positioning bug as before: negative top/left values on Windows
Date: Wed, 19 Jul 2006 13:56:45 -0700

Hi Fran,

I took a quick look. It's different from before, but wrong, IMO. In fact,
it's worse. I don't know if the difference is due to your fix or not.

Frames are now too far to the right, when I expect them to be flush with the
left edge of the display, and too far below the top edge of the display,
when I expect them to be flush with it. However, the vertical position of
the frame that I position at the bottom of the display is OK (i.e. you fixed
that).

This problem occurs even for emacs -Q: the initial frame is about 5cm from
the left edge and about 6cm from the top edge of the display. Before, it was
flush with both top and left display edges.

Wrt my own code, which uses a standalone minibuffer frame, the following is
different from before, when I start up -

Before your fix (both Emacs 20 and Emacs 22, except for the minibuffer
frame, as noted):

 - main buffer opens in a frame at the top left corner of the display (flush
with the display edges).

 - minibuffer frame opens at the left of the display (flush). In Emacs 20,
it is correctly positioned with its bottom one character higher than the
bottom of the display (that's what I specify). In Emacs 22, it is too low
(see original bug report).


Now (the build you gave me):

 - main buffer opens in a frame about 2cm from the top and 2cm from the left
of the display.

 - the minibuffer frame opens about 6cm from the left of the display. It is
still a little lower than the position in Emacs 20 (I'm not sure if that is
incorrect) - 1 or 2mm lower. The vertical position is not a problem.

To reproduce, just use emacs -Q on Windows.

To reproduce what I see with my standalone minibuffer, please pick up
oneonone.el here: http://www.emacswiki.org/cgi-bin/wiki/oneonone.el. Save
the following code to a file bar.el:

(setq load-path (cons "<directory where you have oneonone.el>" load-path))
(require 'oneonone)
(1on1-emacs)

Then, do this, to start emacs:

C:\<your-path>\bin\runemacs.exe  -q --no-site-file --debug-init -l
"C:\<your-path>\bar.el"

My code sets the top and left of the default-frame-alist to (0. 0) - see
`1on1-default-frame-upper-left-corner' in oneonone.el.

See function `1on1-set-minibuffer-frame-top/bottom' in oneonone.el for the
code that positions the minibuffer frame. It simply modifies the frame
parameters to use this:

`((top ,@ (- (frame-char-height 1on1-minibuffer-frame))))

Thanks,

  Drew





reply via email to

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