GNU bug report logs - #58627
29.0.50; `set-frame-position' doesn't set frame position correctly when it is called with negative X or Y

Previous Next

Package: emacs;

Reported by: Yuwei Tian <fishtai0 <at> gmail.com>

Date: Wed, 19 Oct 2022 11:07:02 UTC

Severity: normal

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Po Lu <luangruo <at> yahoo.com>
To: Yuwei Tian <fishtai0 <at> gmail.com>
Cc: 58627 <at> debbugs.gnu.org
Subject: bug#58627: 29.0.50; `set-frame-position' doesn't set frame position correctly when it is called with negative X or Y
Date: Wed, 19 Oct 2022 19:18:48 +0800
Yuwei Tian <fishtai0 <at> gmail.com> writes:

> The manual for the function `set-frame-position' says this:
>
> "Negative parameter values position the right edge of the outer
> frame by -X pixels left from the right edge of the screen (or the
> parent frame's native rectangle) and the bottom edge by - Y pixels
> up from the bottom edge of the screen (or the parent frame's native
> rectangle)."
>
> Tested with NS port Emacs 28.2 and 29.0.50 on macOS 12.6.
>
> In Emacs 28, when using `set-frame-position' to set the position of
> the child frame, when X or Y is a negative value, it correctly sets
> the position of the child frame so that its right edge is X pixels
> away from the right edge of its parent frame or its bottom edge is
> Y pixels away from the bottom edge of its parent frame.
>
> But in Emacs 29, when X or Y is negative, `set-frame-position` sets
> the position of child frame's (0, 0) point -X pixels left or -Y pixels
> up from its parent frame's (0, 0) point.
>
> `set-frame-position' has inconsistent behavior in Emacs 28 and 29.

Did you build Emacs 28.2 on Mac OS 12.6 as well?




This bug report was last modified 2 years and 298 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.