From unknown Sun Aug 17 09:10:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28915 <28915@debbugs.gnu.org> To: bug#28915 <28915@debbugs.gnu.org> Subject: Status: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) Reply-To: bug#28915 <28915@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:10:37 +0000 retitle 28915 Emacs 27 under macOS window system; improper frame resizing (= off by 4 pixels) reassign 28915 emacs submitter 28915 Bob Weiner severity 28915 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 13:42:03 2017 Received: (at submit) by debbugs.gnu.org; 20 Oct 2017 17:42:04 +0000 Received: from localhost ([127.0.0.1]:52682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5bJ4-000637-CX for submit@debbugs.gnu.org; Fri, 20 Oct 2017 13:42:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5bJ1-00062b-FF for submit@debbugs.gnu.org; Fri, 20 Oct 2017 13:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5bIv-00027p-IA for submit@debbugs.gnu.org; Fri, 20 Oct 2017 13:41:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_05,FREEMAIL_FROM, RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e5bIv-00027X-El for submit@debbugs.gnu.org; Fri, 20 Oct 2017 13:41:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5bIu-0001Oe-D2 for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 13:41:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5bIq-00026S-AO for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 13:41:52 -0400 Received: from mail-qt0-f178.google.com ([209.85.216.178]:52463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5bIq-000266-6u for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 13:41:48 -0400 Received: by mail-qt0-f178.google.com with SMTP id 31so19380166qtz.9 for ; Fri, 20 Oct 2017 10:41:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=aZQFJ9tPi6VnjDFkpvBGhbyYg97eyR5pvcBWVnFMNv0=; b=q598iRntBi8QtKoI7yUn49bjV/kc3OMr1vMW81n/b7Y26wlJzRH/AnS4AMAey32S5X lJdW9y1ATmcZHf3pg21M8S38dJEiJd9+wJDfKKbwa99DPww+B9T3XLn6c6IkGVWW/3gj 2m+9PSX2ej5rhYR6b7/sJHogfARKO8tge8lmjWV68c/DmEfV1e4z4Bj6YkvVDfY93Yyn YACugsDKsUvN8b/80sqZv/afWzCgtARVX+b2xDTbviM82F7YGvSXZZi0CXphDtFkorB7 IlCVnXKys2sdWVQvn/uLuqLNGa1G0F5v+VDVPFsFVUaOhlRJ86JvYhXvQvLwFRMrIce5 fksA== X-Gm-Message-State: AMCzsaWXIpReDMYRPGOzz+lTv3aa4uqmMJ0VAVPpj7nJNnYUCnKrwKp3 /z9Pm0pOvABwPq52N1I8WiLnWQ== X-Google-Smtp-Source: ABhQp+QoN2wRBxhXpglmLL4d4Jr2YtDsfifBGlgpLwOoGFUYXa59MwyFun5IjxHTIET9x7X21bSVGQ== X-Received: by 10.200.45.178 with SMTP id p47mr8261255qta.263.1508521306302; Fri, 20 Oct 2017 10:41:46 -0700 (PDT) Received: from bka-iMac.local.gnu.org (ool-2f1481cf.dyn.optonline.net. [47.20.129.207]) by smtp.gmail.com with ESMTPSA id b194sm886454qkc.31.2017.10.20.10.41.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2017 10:41:45 -0700 (PDT) From: Bob Weiner To: bug-gnu-emacs@gnu.org Subject: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) Date: Fri, 20 Oct 2017 13:41:44 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Each time the following two expressions are called, they increase the width or height respectively of the selected frame by 4 pixels rather than leaving the dimension unchanged. Even if this is a rounding error due to use of column/line math, shouldn't there be a special case test for this that prevents the size change? It would simplify coding. (progn (set-frame-width nil (frame-pixel-width) nil t) (frame-pixel-width)) (progn (set-frame-height nil (frame-pixel-height) nil t) (frame-pixel-height)) Bob From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 21 04:05:28 2017 Received: (at 28915) by debbugs.gnu.org; 21 Oct 2017 08:05:28 +0000 Received: from localhost ([127.0.0.1]:53021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5ome-00057f-6z for submit@debbugs.gnu.org; Sat, 21 Oct 2017 04:05:28 -0400 Received: from mout.gmx.net ([212.227.17.21]:59811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5omc-00057K-IE for 28915@debbugs.gnu.org; Sat, 21 Oct 2017 04:05:26 -0400 Received: from [192.168.1.100] ([46.125.249.29]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LhB9P-1dSqgB3bc7-00oTvH; Sat, 21 Oct 2017 10:05:20 +0200 Message-ID: <59EAFFBD.7060908@gmx.at> Date: Sat, 21 Oct 2017 10:05:17 +0200 From: martin rudalics MIME-Version: 1.0 To: Bob Weiner , 28915@debbugs.gnu.org Subject: Re: bug#28915: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:hkKINxH5KKJQ3ncv7Vn9E5kCFQrzIseTdHw7B9HkrI/VfXpMw7m ceiGCJXtl8EU+AI0X9mlDtqxFHayZ/L7GkX9rUOV6EncAyE9XVDEEcO0BODOeRqqPplEB1H JYWwJkBQ+Ue+cQx6p2oA82sPWV457oSQdX0QXhlo+wdiUaKMYV6L6RpzokI5PJYHampgVoc OfQia2VU6qSU0Slxftsdw== X-UI-Out-Filterresults: notjunk:1;V01:K0:63zoKia1wj4=:fgJR5SdpPyxX8MPzioYWWr plTvA/Enxg6ggPKvU2vFPImnmKkxTsn5LDtf5ov8n9bBStt6hBkVZ6fnV7ICY3NrJ6clBJ2vi P/cDlmgpar4ddxHCSZfNMWasavmr85HaGet1bh+2c+f9p3O0oeHurJSR/9RLGlNROREbVAPvu nDnKnKWaUT2vbmL9c8ofyT++MCWGa1GdEDD6ashDuBhHtD4wXFUNr0053K0EifDYKep0LQQpi gsnG24E+oliuQrtzLoc+Ej4T1ltHG4NilGLUjJ2Q+wpdqRaBtX3L1SChWbzzY57s9L+DCNsnu UwGaCLMi2MiOXW35AfIEj+FCyqfzTw1xHRNCOOgskxgTnfbdPFDLqfxkUD3cgrJ/0MwQidXMg xWFdwZCbusaHQRdB5ud9vGDOgfwh+crUXIL2Aw5NC1gigjWsvIKd36aUWN+/W8rVnLWbYkIQp Wtx6w+D8aXCkbPkr8RLY8BDxTJSo7n7wKnOYYWkCVzsJzVt3eP8w/RT95FNgiUVeGTOkJPkG4 DMRhiuz9z5JBMfEv7tlwTcCXFr3si/xBGTwOdzELo+mMSbct7Hrw0AF2DC1c3tYe+y5k28zHa uB8WqeiVYNyiKEoSoRggb/xMnTOaxEqsEn2SZ0mAY06G9VpIsPM56vK1nozppUEkmdgMyGGyU pqkzlnTzs/hfs6SGqvDf39SaziWWR5i7wdi9XrXcW4ObicO479VIARxV2pKsc+iyJt5Zm7MOo G/J7XbqvshQJ3SXXayim5soLP1FRwFy8UuRMoN3rtLtQX2fcWoQK2HxNQedvGg9FmICwfX33y QbckBbt0yy96i2ubSCAD/XMqKJe8vYyXq6L3+t1dC3WombED6xd92tBtOcy/gMIrftcHg+z X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 28915 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) > Each time the following two expressions are called, they increase the > width or height respectively of the selected frame by 4 pixels rather > than leaving the dimension unchanged. Even if this is a rounding erro= r > due to use of column/line math, shouldn't there be a special case test= > for this that prevents the size change? It would simplify coding. > > (progn (set-frame-width nil (frame-pixel-width) nil t) > (frame-pixel-width)) > > (progn (set-frame-height nil (frame-pixel-height) nil t) > (frame-pixel-height)) This is not a bug. For historic reasons, the second arguments of =E2=80=98set-frame-width=E2=80=99 and =E2=80=98set-frame-height=E2=80=99 = must specify the width and height of the _text area_ of the frame and not its native width and height. You can rely on this to never ever change. Section 29.3.4 Frame Size of the Elisp manual should explain everything. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 21 04:16:32 2017 Received: (at 28915) by debbugs.gnu.org; 21 Oct 2017 08:16:32 +0000 Received: from localhost ([127.0.0.1]:53041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5oxM-0005Q0-Bn for submit@debbugs.gnu.org; Sat, 21 Oct 2017 04:16:32 -0400 Received: from mout.gmx.net ([212.227.17.21]:60270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5oxK-0005Pn-5J for 28915@debbugs.gnu.org; Sat, 21 Oct 2017 04:16:30 -0400 Received: from [192.168.1.100] ([46.125.249.29]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MAUpK-1duJRN164Y-00BZ08; Sat, 21 Oct 2017 10:16:23 +0200 Message-ID: <59EB0252.3010604@gmx.at> Date: Sat, 21 Oct 2017 10:16:18 +0200 From: martin rudalics MIME-Version: 1.0 To: Bob Weiner , 28915@debbugs.gnu.org Subject: Re: bug#28915: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:IKU4rWRQZccnS/70D/2Ww5QmUnCz4XcMTd31LR+Hms/qRopRm4J 3qub4yvhtfRtl1+thq6uKxe2JpW9v0Mg2t0rtjF4c95K2OXSqnrDnx27Ba3A2DvvAH7I4ag 5k1aF+ZlYc8Eigxdj/GiTpR0QoddQBlvbRGt2CxUnljFsRF6vslsY7HuYxfE2NdPA4YurfJ 12XkYFc+q8E8R9Xwwd7fA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+B0qAfMhtBc=:zCJTXYJDYltwnkDQL2zvwj S3Ue/at3pzDKspRM2oGp6Zkhykxh6b6YkLb0MeoJQkD0WtCKBKkeCdwp0YnkiIdI/svkwE7xe XO+Aj2iKD2WNFvrgWqKApBZ9Zr6upPOuBKA6IH9tyi7uURi0QKb+DBfdF4N60EbIKuC4jf8es Uq6FJ/V9D58VzeQk6OjR5cA10JPE3Yp/WYZufpsKaHc0xVvUHXDertlFxr0REzfdUKWsQdwtO l7+CZyOtTENAcIGwILHVPbPpH/tA8cx+IPxxN/FdfeCxi4nAj91iWzdKKO7EUl5oSrlE37Qac aLAym1gKXvjP+bxVTttQqtIeLQIjWChtjdUEL0ysFrhUzuVcifAlG/5BpTXfku5BIOcdF+psm 1m8Z26n5Z63ld/YNBMIqt3iJFU4vBI47Xvok+sSp0NfecvdkU+shFKJavfVYaGhl5jS0yDugV 2CClFaKMM4FLygBCBruYgoVc7Ej50vwhalNIo/D1KQcFVI2/PGokHyHSj0dO1R7CQe34PwQS4 Ox8U4hDm9FjmyOg3pW4UujAmCpVe4NnCcmVSp8uh8Oqvkmj39gQcD/JIOVVNZzynABU7jnbCD 1um/OstgoodhNFBeQ8SUvL1lyOXclLW02WtGG/vZH3FJBCeWB5LTIKTI6W/W2qAqQWiRQfgtQ JBQIKVcpnlo8tF+n0ivcJhGZFbeGDJkA4Nc6wWDX/MapPKu2iDH5GteIon51ADleF3TBwRRYV 19GO7UtM/8GgM+d26Pn36N7D2BCQkFxKlH/pKNateeW4aYVuhg7kp/yc2ytNPaXh6mRTPVFCH eo0FrjE18PvCID4pqWhIRI4Me8Y+qMtcvYAeEPEg+pCuwuPZfUWdzQt4nX9wMZfBKpb4EBf X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 28915 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) I forgot to present the necessary code adjustments for this. Use (setq frame-resize-pixelwise t) (progn (set-frame-width nil (frame-text-width) nil t) (frame-native-width)) (progn (set-frame-height nil (frame-text-height) nil t) (frame-native-height)) martin From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 31 04:42:22 2017 Received: (at 28915-done) by debbugs.gnu.org; 31 Oct 2017 08:42:22 +0000 Received: from localhost ([127.0.0.1]:43187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9S7q-0004Gi-AX for submit@debbugs.gnu.org; Tue, 31 Oct 2017 04:42:22 -0400 Received: from mout.gmx.net ([212.227.17.21]:58545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9S7m-0004GH-94 for 28915-done@debbugs.gnu.org; Tue, 31 Oct 2017 04:42:20 -0400 Received: from [192.168.1.100] ([46.125.249.55]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MNw0t-1e3fMu3EnT-007VDU; Tue, 31 Oct 2017 09:42:11 +0100 Message-ID: <59F8375C.30408@gmx.at> Date: Tue, 31 Oct 2017 09:42:04 +0100 From: martin rudalics MIME-Version: 1.0 To: Bob Weiner , 28915-done@debbugs.gnu.org Subject: Re: bug#28915: Emacs 27 under macOS window system; improper frame resizing (off by 4 pixels) References: <59EAFFBD.7060908@gmx.at> In-Reply-To: <59EAFFBD.7060908@gmx.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:b7Gh0cVrVYJY8kDOBqwvVJBISoWHMj54mgeZAlUriIB2DpMQhn8 1aofnh9770aJG4UzaYAlrGJJkorH/5o+sO5hX4zGtIqv6+KV5rP1qG73WkxI6WawppF4W+F NCUlzvICL2n26jvxOETBMQGVGv/wBG1sUH9IOKjtlmFFJm17OllODxC2P9+0LX6tyZivkIx hfOHrbWhKp9X3J0i359EQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:fFh6Uycdaro=:8brT6NwwSeZCJPGo8cx3bi Yph5YX4KduiOXQuVegzA1X2ZDolwpdJHCbeOInHTA6d5ca7qfl6IZJsU2YGLK0J35uHsnX9jN 4w31k+BvCAnQDU3UQfvXJOCc65Neg8gX9DpzCTDBzWifu0nBvFoN0AmALTB0PGbnB9LAn4FRz GIhKkkqxQmw73FCxj2x0jKodVlKiPMeDjeONdQwpxEDtDKg+4YEAtX3kl6Hk5zLAKF9iovbHz 0HjDx1RtaBv1iayx2OOs9p5Bk8ZRWX6MCV+go75IIszTeW1hD1GAH2Q3N8xt9qUnhB9ank3el helVcWS7eQ9tX42/EFJ5qtsOvkJJ/oXCxgGMUD1Nt5KCxsfHS8ht6VTnToCsnTNsL8dn26mw3 zA4fNPkjbh9d/jr4jfrSz2Xqy6NG+f+JFSKBexio28Omf9hZPnT3PTDsh+pkgaNqn7twdfqLs SPsuCK7HG7u/tQRVhSGxGPTfd2kZ68SSq671U3Abno06a/hkBUVGPrf0+Y1LQOIg1GeiFZPjr a2hTizAQDtK05cB5H5gWsiQhmbTRuujlq+UjNDOgQEfWsuECUDAfx+X3KB1DKyfjW/aq5259+ jRjqp5xA72PVufNfjNDiKDyYiR8QI7EOB7vKBO8elLFqLKEqRLzho+hoxL27S5YvjaHXEVn44 vFlNwRH0FgSvXv1QwV3jC13vo8bn1WyjeK26cIo75H2MXmuWc1sHM5uLmyROsgUL7WEsfsYyk cQDHKOM9nazV6fDg/QRfA3XbDpYWAdk+qWzVVMU+mgNHh8xWUW/eovEqu9RzUPC2yWvFd+AM0 2BPAhpMDyB7N2a0iXKejN3g8GYyLFUX0xW0o5l7BmwVULenHVF1GlczCHleQouVvLSy3Wer X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 28915-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > This is not a bug. For historic reasons, the second arguments of > =E2=80=98set-frame-width=E2=80=99 and =E2=80=98set-frame-height=E2=80=99= must specify the width and > height of the _text area_ of the frame and not its native width and > height. You can rely on this to never ever change. Section 29.3.4 > Frame Size of the Elisp manual should explain everything. Closing this bug. martin From unknown Sun Aug 17 09:10:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Nov 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator