unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Yuwei Tian <fishtai0@gmail.com>
Cc: 58627@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	[thread overview]
Message-ID: <87r0z483jb.fsf@yahoo.com> (raw)
In-Reply-To: <CAC9=Aim=J6nRemX4VKhyqeKx3=ux6vgevPWa3EuD5+Y4=haKEg@mail.gmail.com> (Yuwei Tian's message of "Wed, 19 Oct 2022 14:37:00 +0800")

Yuwei Tian <fishtai0@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?





  reply	other threads:[~2022-10-19 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19  6:37 bug#58627: 29.0.50; `set-frame-position' doesn't set frame position correctly when it is called with negative X or Y Yuwei Tian
2022-10-19 11:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-10-19 12:23   ` Yuwei Tian
2022-10-19 13:10     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0z483jb.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=58627@debbugs.gnu.org \
    --cc=fishtai0@gmail.com \
    --cc=luangruo@yahoo.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).