From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 19:18:48 +0800 Message-ID: <87r0z483jb.fsf@yahoo.com> References: Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19454"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58627@debbugs.gnu.org To: Yuwei Tian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 13:20:16 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 1ol77Q-0004rY-Pr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 13:20:16 +0200 Original-Received: from localhost ([::1]:43504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol77P-0000Vg-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 07:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol77D-0000U9-GI for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol77D-0002xQ-1I for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ol77C-0001JM-Gj for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 11:20:02 +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.16661783464958 (code B ref 58627); Wed, 19 Oct 2022 11:20:02 +0000 Original-Received: (at 58627) by debbugs.gnu.org; 19 Oct 2022 11:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:56001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol76I-0001Ht-Gq for submit@debbugs.gnu.org; Wed, 19 Oct 2022 07:19:06 -0400 Original-Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:40199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol76E-0001HN-Ef for 58627@debbugs.gnu.org; Wed, 19 Oct 2022 07:19:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666178335; bh=i3rlEpvcgQ4UohGOUWUUygTTtHfxL9YcA5PE5DgTS6U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Lcr7EV2n104Eqztqe2RkmHUhXRqERf7+BWEVZu6MddtZOvhLtPPSrBwnD9gBMZAlE5PSlgiAiJrLKn3OXbLW7BAbUnywomhS7HbTg/F3RODhLr6LW8HMmU1lDDRV4xbUYzJNXNpGyCI6G40zcej+Nwk8p8s+M8dLN3c0sFXHAwe3+p1clmkrf2WVs375DZ+TUNeg9cnp1elmUiL56Z4XHMlozOu2Zpipzuh6HYPAsiXdXBiYPMuCbq31rjCjV4LAnpJsWzhzZTfpGCyRgofbDm73b4rkUxP9NWG2cD8UsFh/W9xj/IdcP2RYHwqCRQbrRKAsbpS9zV9SdRnaLlmsgw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666178335; bh=Tmuu/iHUYjQu1rbpfGasapOzwC7xWiTbzqKHyu/L3u0=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=jEIzCq0Rf/x/pzEyV1eOySqSyitSh27jpWVqybOx+RdCutiZvPgjOfed9YdXhf4AvSQwhwRttKs4JmlH8bLWeBVLIeSIgqH0duT2JOgjuKCAW6Tu/TTn9qtg8l6WQrJylLnM0iRBqqUZohiRLaWPpSTq1suZOPaDq9bO5hwmyewq2AH+3FPkPAOr6EoWpxbeT7rtkOGOunTGfEGUv0GisCB21BSjQfXfUiKQjZtFhlIHSZJ+lUf0tDwBbVCxIVL5i5Togn6MKouBnlBf4dm004ZEfy55uux9OHEYvmREDcqib1BzUZhF9txf1PutFFcjHEwlVWPh7oJmhqUcuYnVVA== X-YMail-OSG: sbxHzhkVM1mUS8OnGMBy.uYqnEQTPFY.M6mFie_6rxNmnDZkgOq.nvcD7gX350X HlFiW7Se_M0Ag0egq1AbA3ef38.S1mA4ti9G.BQKw3C9VMux_La_bsqu8hXBifcG29qHY_9byUtt qTbXCBO09vAoJwkI9qGXh6kQMkq8sehZ.ID1MTqDOZMXwAfz__197FrRFau9L2McBrtkT361DBFl mmaWabRjxl3HKi5bMd9dTkXM2zgimlTTnm07EFmd2T8RkwUj4WraAUOticOswe77NfZYUxoOmcNj ptKIsdQx1AvpSJ_RS6yRPPU3V2ErYc.ZsjEJppPHoPYKEaN5fTXNSFb3CzZAf9OEHFqN.uQZ_pSf xYL8dgrT9fFDOdFqWpOw2sWjTvX5hpT3XD57Sy6SLcDzx3ccp5frN9MLvVxpiEFit6RAIj6jlH0w gHTPVwiRhVMfRT65x6LtXIAxWqQbGKp_s6llNa6Uw74J3eW.J4dS3NJKcgM9CmdX.M17wk6ItSDf lv1pEPCZv_hvH9I5JibuZSQoazU2U3tqVYfcJjeSF5RpeDC8xEPlW11cAWAHxk9.EIiBGsoOOnwj ZLs1DJHfSFfQq8weeLYIMUnEoSkp2_qq963hUE6Ox8Xp3zhRoV..5cULfEvUIyNMXCo5SqD_hj3Y hjuXT4BrFd9PtNUk4Ha7tucJQ9Y2Sg_iyg9Ha4T1FqnVedVilW_bm2gBiqTV2eFNv59_y_Afrz2b G5T2Pgqj9bq1nPTt1KTV4Ue72sI6VhSop9HueDxLnYfkWxpL4VCTvFnjqkQlY3ioiyhQJpAOj6KT PuUUvksi0kgyArwoFU0yKvFlZjCVok9g6SynWzqxLI X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Wed, 19 Oct 2022 11:18:55 +0000 Original-Received: by hermes--production-sg3-74fb94585-fbrfq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID af2f71f55850503f4d1f7d283ad86d6f; Wed, 19 Oct 2022 11:18:52 +0000 (UTC) In-Reply-To: (Yuwei Tian's message of "Wed, 19 Oct 2022 14:37:00 +0800") X-Mailer: WebService/1.1.20754 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:245860 Archived-At: 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?