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 14:37:00 +0800 Message-ID: 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="34097"; mail-complaints-to="usenet@ciao.gmane.io" To: 58627@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 13:08:13 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 1ol6vj-0008e6-Im for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 13:08:11 +0200 Original-Received: from localhost ([::1]:52208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol6vb-0007Fl-JE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 07:08:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol6ud-0007DM-CV for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol6ud-0000h3-3q for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ol6uc-0007DT-Q7 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 07:07:02 -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 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58627 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166617757727649 (code B ref -1); Wed, 19 Oct 2022 11:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2022 11:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:55976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol6ts-0007Bq-Ve for submit@debbugs.gnu.org; Wed, 19 Oct 2022 07:06:17 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol2hZ-000684-VU for submit@debbugs.gnu.org; Wed, 19 Oct 2022 02:37:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol2hZ-0001fs-JY for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 02:37:17 -0400 Original-Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:39777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol2hX-0001H4-Hj for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 02:37:17 -0400 Original-Received: by mail-lj1-x231.google.com with SMTP id c22so19559135lja.6 for ; Tue, 18 Oct 2022 23:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=RD14WoDaN135sM3IXBD4aMBsvg+ZwhYQIoUFbiz5kZk=; b=V+ZLbk1ky78wD/0TsytlfuBvhma9HbhgGFMyqNxu68gzNuqG4zs5vuFhkt4DB8MN4w wQZYDgkmuHC07L8Ip2RSbIuA87/JMfwvLgraNpzsowHVcFYhqbYGT9sLH+xpWSeTcD8J oMefqlVR0vhAgKkhp4E5tP565HIJUcRQwwrwhLbDmVcQOC5/0KxWm3xcCRDib/QLhtV2 hDow2nkfkWvshaiH5Z2N2Mwanb3qy9PXBy3971E2E4Tw4yFmpCIdmWB7T8+eY5IAUmn6 ui66/jYhIlh+mMYVkW+8IHg90XlBc02J+Ux6//SRXzHn+24Kp0ez2YYm+xnVdnU4uYZd tpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RD14WoDaN135sM3IXBD4aMBsvg+ZwhYQIoUFbiz5kZk=; b=Sgu2qBWa6pf6yUwfywgplJFjjltwpuKdBtBXLq8DP6Wjt8uPoWkoDJyEpd8dPbVz7G e92CL8LZSD5KUn1f8fVblptRF8key5GxmXJ7+UsyRru0f1AScjMzsnKUtLNIMAmR3MMi Pa9uId3vZHcNhNIQMO3HP61Om+tinWWLwimcRe9XR6lbGfk9PfqachRNaB8DrJeA5BuZ 4YPT9OetwOFJH8wSZalHKI5DAA56Vvhl9Jv4iNcjLEUdWyfcQjivYsz52FexbzE28hQG 2motavoGnt+NIVIb4hqvTyhlWubSOb1A40DiRmKNegLM7uDBf9JBVEdSHAO+2jJw17gU xbbw== X-Gm-Message-State: ACrzQf0pLtY3AN9fuB9NLokkSZ9y31DHkDjtY15al5DG7nAIinmC4upq NLCsPHUmhJKc9DRZOMKlUZRPypRCqcPt8irf8mEP2ZwDFIQ= X-Google-Smtp-Source: AMsMyM7vVuSc6qnFZZ4QXkT3Gz4PUpKtom7NWqz5ldsROS7LqDfmUpgemiFc3bNkXmj70auVijI4IxvAvRzvablKqio= X-Received: by 2002:a2e:9304:0:b0:26c:64af:5f5e with SMTP id e4-20020a2e9304000000b0026c64af5f5emr2327897ljh.211.1666161431730; Tue, 18 Oct 2022 23:37:11 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=fishtai0@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 19 Oct 2022 07:06:02 -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:245857 Archived-At: 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. In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-10-19 built on fishtai0-macmini.local Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@29/29.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@29/29.0.50 --with-xml2 --with-gnutls --without-compress-install --without-dbus --without-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -march=nehalem -mmacosx-version-min=12 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' 'LDFLAGS=-L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 38723 7803) (symbols 48 5013 0) (strings 32 13162 1904) (string-bytes 1 380714) (vectors 16 10573) (vector-slots 8 162118 16691) (floats 8 21 18) (intervals 56 378 0) (buffers 1000 12))