From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuwei Tian Newsgroups: gmane.emacs.bugs 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 20:23:51 +0800 Message-ID: References: <87r0z483jb.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58627@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 16:46:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olAKm-0001p0-U8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 16:46:16 +0200 Original-Received: from localhost ([::1]:46220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olAKk-0004xu-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 10:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olAJc-0004we-Az for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 10:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olAJc-0005AW-0a for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 10:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olAJb-0005o7-RU for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 10:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuwei Tian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 14:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58627 X-GNU-PR-Package: emacs Original-Received: via spool by 58627-submit@debbugs.gnu.org id=B58627.166619068822241 (code B ref 58627); Wed, 19 Oct 2022 14:45:03 +0000 Original-Received: (at 58627) by debbugs.gnu.org; 19 Oct 2022 14:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:59668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olAJL-0005me-Hj for submit@debbugs.gnu.org; Wed, 19 Oct 2022 10:44:47 -0400 Original-Received: from mail-lf1-f50.google.com ([209.85.167.50]:38769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol87F-0007Rr-NC for 58627@debbugs.gnu.org; Wed, 19 Oct 2022 08:24:10 -0400 Original-Received: by mail-lf1-f50.google.com with SMTP id g7so22726899lfv.5 for <58627@debbugs.gnu.org>; Wed, 19 Oct 2022 05:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iwX/gS05P1FfS7fxiY5z2+AzMT5l9zt+2aGLHTF9roQ=; b=WUfr6/ZgvGJVxD5UH2+aSr05Nm4QW+bUYmh0yAs6dLXI2FYtSaA/eQfHhVR4ybpZnU 7HH9h14havm2g3Mr3BZJVcc0Uigqq92xv5VofEVVYnCnWfWqoCORapbXVbjEFvM+u794 V8jKFI3cAK46WA6RIcREhg21GjB0nmglWw0T3dNcqKKzkKFgXQxJFGk6ULKBwdZZFaQj sPYYyXld4ntsk64HnlVMpGRiC6xSKPWb3pHc7I0W7qwqBOQ3szKYtMetmwctPQ5H3j6f hsfs02uSdcJWOWOWOfc8if8oyJg+usFtKp5Uml4hQGVgfHxAuaxC4yNTJyLRiALj6SD1 cW9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iwX/gS05P1FfS7fxiY5z2+AzMT5l9zt+2aGLHTF9roQ=; b=lMceZGxUc9quZrohXtFJDs3RoV3lrtrmjl+nvaWJeeme09rpMR3nHYmNoWj2q/j67D 6jNuHi9b0RmqcUW6sjIILWr478sbjCpC3dgnvsue8/oJkBWgdAEI6RzhzW0gJtHmUVak 1rKg5YmDRGiBujdzkS5XqiUD/zKI/WqQeJ5jtXkCesnCWrKz17O+wG+aCFKFG+cU2OMP 4OgONwDrM17EF9yUrqoZPWtC7qy080mBMKLL+YS+9Vc+wWWGjEb8beTzfoKQMpVlZe71 WI5jwQmck3PrrUbBDSAAd3u68wuCkh2jAZkt+JCl7i+KMpXvdKw/TNBoVJMFJXEnREVf w+hQ== X-Gm-Message-State: ACrzQf2UfaNo4sNgPjkqI5oW0vdUXFEdG4fmxOB63ey5HeRMcoVnW4S3 sM8BTKW85U396JNTD2vR4/8orFmnTESFMhPZpNA= X-Google-Smtp-Source: AMsMyM42GSkpyZBSxk+cn/5JEa5+ylY5Wa6OIk9JMounfOJVFijNBFWU6v5oNJuSHJqGoyQ4CgCFgxvghCKmr/aISms= X-Received: by 2002:ac2:5fac:0:b0:4a1:faff:53a8 with SMTP id s12-20020ac25fac000000b004a1faff53a8mr2670129lfe.587.1666182243512; Wed, 19 Oct 2022 05:24:03 -0700 (PDT) In-Reply-To: <87r0z483jb.fsf@yahoo.com> X-Mailman-Approved-At: Wed, 19 Oct 2022 10:44:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245874 Archived-At: Sorry. I just built Emacs 28.2 on macOS 12.6. It behaves the same as Emacs 29. I tested it again on the Mac port version of Emacs 28.2, and the behavior is the same as described in the manual. Is it an issue with the NS version Emacs only? On Wed, Oct 19, 2022 at 7:18 PM Po Lu wrote: > > Yuwei Tian 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?