From unknown Wed Jun 25 03:52:25 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#38146 <38146@debbugs.gnu.org> To: bug#38146 <38146@debbugs.gnu.org> Subject: Status: 26.1; set-frame-width sometimes does not work on OSX Reply-To: bug#38146 <38146@debbugs.gnu.org> Date: Wed, 25 Jun 2025 10:52:25 +0000 retitle 38146 26.1; set-frame-width sometimes does not work on OSX reassign 38146 emacs submitter 38146 Markus Triska severity 38146 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 04:21:14 2019 Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 09:21:15 +0000 Received: from localhost ([127.0.0.1]:48187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTMvi-00077a-Kf for submit@debbugs.gnu.org; Sat, 09 Nov 2019 04:21:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:40279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTMvg-00077Q-AC for submit@debbugs.gnu.org; Sat, 09 Nov 2019 04:21:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42670) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTMve-0007OK-Vx for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:21:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTMvd-0003TI-Q0 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:21:10 -0500 Received: from metalevel.at ([185.194.236.120]:60726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iTMvd-0003SS-Jn for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:21:09 -0500 Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 21E0D727A6 for ; Sat, 9 Nov 2019 10:21:07 +0100 (CET) Received: by mt-mbpro.localdomain (Postfix, from userid 501) id A4139FE97AC; Sat, 9 Nov 2019 10:21:13 +0100 (CET) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 26.1; set-frame-width sometimes does not work on OSX Date: Sat, 09 Nov 2019 10:21:13 +0100 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-Received-From: 185.194.236.120 X-Spam-Score: -2.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 (---) When I do: $ emacs -Q -l frame.el where frame.el consists of the forms: (defface item-frame '((((class color)) (:family "DejaVu Sans Mono" :height 151))) "Face for frame to demonstrate the issue.") (progn (set-frame-font (face-font 'item-frame)) (set-frame-width nil 102) (set-frame-position nil (/ (- (display-pixel-width) (frame-pixel-width)) 2) (cdr (frame-position)))) and then, in the resulting Emacs instance, do: M-: (frame-width) RET I get: 80. However, the expected result is 102, because the form (set-frame-width nil 102) above sets the frame width to 102. I get the expected value of 102 if I remove the call to set-frame-position. This is unexpected, because whether set-frame-position is called should not influence the frame width. When I evaluate the form (set-frame-width nil 102) in the resulting Emacs instance, the frame width is set to 102 as expected. Thank you for looking into this! All the best, Markus In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars) of 2018-09-22 built on mt-mb Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 Configured using: 'configure --prefix=/opt/local --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --without-gpm --with-gnutls --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os -arch x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie -arch x86_64'' Configured features: XPM JPEG TIFF GIF PNG GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 10 05:01:39 2019 Received: (at 38146) by debbugs.gnu.org; 10 Nov 2019 10:01:39 +0000 Received: from localhost ([127.0.0.1]:50630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTk2M-0000Ut-NR for submit@debbugs.gnu.org; Sun, 10 Nov 2019 05:01:39 -0500 Received: from mout.gmx.net ([212.227.17.20]:46809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTk2K-0000Ue-UN for 38146@debbugs.gnu.org; Sun, 10 Nov 2019 05:01:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573380086; bh=mVoFuB6ebPtFDBuc8okuHu4w6Fq0dL6EzLumCaeGKRg=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=fO/wQoZRnmjRibgDRlg3JgiSFD3cg6eAypW+6r7vo4ijXm/zMnfdJQidJ0u464gYu pS4O5ZZXvdq51xtGgJsG01ZcGwd4wKEb/8UDuZ+gehj0S58/9fIQrV2op1CubJEcQm XdCo6f5G5FxSEZ93+JkNoFeIfcb2BeSS/gfa79vE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([46.125.249.100]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N2Dx8-1hm6f20oTW-013bvo; Sun, 10 Nov 2019 11:01:26 +0100 Subject: Re: bug#38146: 26.1; set-frame-width sometimes does not work on OSX To: Markus Triska , 38146@debbugs.gnu.org References: From: martin rudalics Message-ID: <79a46cef-2b63-a175-71e5-8279e48a3815@gmx.at> Date: Sun, 10 Nov 2019 11:01:26 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:XOyfqQLitd1NRH80eYw6kagNmT6JMdOXC7oFwGOOAFBq/yalbTT 85IltnTZR7mJliqg40LVEfX/5oHFsNIFD/mj4NEwiHQBNQgcUd1DKgpHAk+iF+T/JrmcIn1 0ttTQCSMotLypiRtQN5t3ns/5oQIQ3EaGNYOPzrrJajqt7Nx6Tx1TUILUKo1sBW13knmyzd W8G1Y0W7M2ZtqPgLIZPXg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9OQ6fdgGdTs=:9nidaIy7HDpMIbyyh2Of07 EA3fKtqGFvvzQJ0tj0AeHloRqDCgAgKkhOR2U9GCTSK3QTcs2rNo2hoBvJEsr83ItZ9uCRlrv 9rs3+HVpLwKd6S6NYys4+htKBtD4lYUo0qx01pw8UqSKdetySszT0ULrq8YKMgN4ykTLdFqBx kizp4/YiBqEWshSnS4iZqrSrLi9W5dPYolhjCmRtnf8jzrl2+n1GDsIeNtbY4+S8lJhHonA5h 7MpqDLScPickbR189RcZLFuzYrcv7d3kHee9GRfw/J0dA1PMWV77d7uJIPQRn5E0JaSkXRBma FbghkyyP83Efx3pBpl1hppzJGiZFKTR6VOhqWdns5sAcaBkSb+s8IGovE4cCi+jKYYjDi4J2Y fElro4LDIxLe3hZ81pf4xARgT5WA9SN3Nz1Z/5Xcs6wYwatyVM51OB4GJa7VLyil+vXhnhc32 kxvdd+9C2shDyCGLLbT/a1YzECPtWJN06LcXawr2kMCirwXMkxF1Uy937w42ot4eFeYXutXOv tEtbi59A4qFQ1K/1fGQvszZhBVW/gsnr5MnbQ9mAeLMkXwwBCudB2di+hKgCKAhoewNOohCdu +9JGEFLTZHMhuS1Gm29ZtcZTRSng0bF02cBmYfjit8cRYMyYWOmYLjn8CMkZRPIJOhrVr1ufs aRXWF7jrE1OtxJm7MkM1BQNRsxOpobYEbfQwUkIeYxzgR5Ttma9BAnhqV1KvodAHfZCdX3yZC D0oBgLMy7rd6uJfatMoGR4wHn60oFLkBSax7zWnOP51y4CH9K6IFZm64g54VvWoSn23iePyUZ iUxQhKiggjqi1wA/UVEr1CFJRHJxvdKxwxCqj7GthGaL9wnLEpJslEZ7ZjjHYB7QRUM0nPa0Y 6kgoB8KFoISjGk6nL/rbiDy1596DF+1ky6c8txgaGWGwjxKqzhqakWxPIC33cCBn7QNn47c1R pw/EuisH8Rkk+8EBHQFcEhmG0Z9u3CBxTXwEzWpV0S/qgUrZezIJYwybBFRpvs3gnQGQn+092 q7daOMkFG+UZJjpVQvq4+ljE6WMjZ4i4Ipn6EjiPbgyM8rwowjxGe/fv4rMDewVsWPOS56n4M GbDdCoTv/ZGUvVYmFwOH+mgQzdE/qMJjlRFTDYf6AW1MxDPDDNruh7EdPZ8LKNLN4ywMIcnnm 3MSgUOV6EFgIy1AkB/wL/aqCPY+Cuo/zlHVJ2jLd3CR8g9kKGGpgWwR6dtMjzZ4xGskDFnQIK hgI/rV7/mATh7XUKyVdDYFdr0PfjT9QvBFX8VTve5IVlG176vPlSS/4U0q8M= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38146 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: -1.7 (-) > When I do: > > $ emacs -Q -l frame.el > > where frame.el consists of the forms: > > (defface item-frame > '((((class color)) > (:family "DejaVu Sans Mono" > :height 151))) > "Face for frame to demonstrate the issue.") > > (progn > (set-frame-font (face-font 'item-frame)) > (set-frame-width nil 102) > (set-frame-position nil > (/ (- (display-pixel-width) (frame-pixel-width)) 2) > (cdr (frame-position)))) > > and then, in the resulting Emacs instance, do: > > M-: (frame-width) RET > > I get: 80. > > However, the expected result is 102, because the form > (set-frame-width nil 102) above sets the frame width to 102. > > I get the expected value of 102 if I remove the call to > set-frame-position. This is unexpected, because whether > set-frame-position is called should not influence the frame width. > > When I evaluate the form (set-frame-width nil 102) in the resulting > Emacs instance, the frame width is set to 102 as expected. Here I get 102, for example with a GNUstep build on Debian. The behavior you see is OS and window manager dependent. Sometimes setting all desired values in one 'modify-frame-parameters' call helps. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 02:04:07 2021 Received: (at 38146) by debbugs.gnu.org; 30 Jan 2021 07:04:07 +0000 Received: from localhost ([127.0.0.1]:53467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5kIg-0006YP-QN for submit@debbugs.gnu.org; Sat, 30 Jan 2021 02:04:07 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5kIb-0006Xo-Uq for 38146@debbugs.gnu.org; Sat, 30 Jan 2021 02:04:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pfvLfRrjX66wzvEKbI6nDA2BGQYwtwkfDHR1OoRKItI=; b=BqOrGjnD6jpaOKJe46palVwYBL B4h+HkZd0U0Qw3iixWBqOLsYru47uZmWiWAUj7uhLR1PJvXnrxA0YW5oQ5QjGtmi7wrkSfmTlCF9n GcUZeU3y7DxqnwBO5YDORC1Zl6BVes3r08pwLSNJ2vu3o43F2Bm3c/SvJ/IMUjw+ZFKI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5kIT-0005bR-KK; Sat, 30 Jan 2021 08:03:56 +0100 From: Lars Ingebrigtsen To: martin rudalics Subject: Re: bug#38146: 26.1; set-frame-width sometimes does not work on OSX References: <79a46cef-2b63-a175-71e5-8279e48a3815@gmx.at> X-Now-Playing: David Allred's _In A Town You Wouldn't Know_: "Rain Drop" Date: Sat, 30 Jan 2021 08:03:52 +0100 In-Reply-To: <79a46cef-2b63-a175-71e5-8279e48a3815@gmx.at> (martin rudalics's message of "Sun, 10 Nov 2019 11:01:26 +0100") Message-ID: <87czxmzz1j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: martin rudalics writes: > Here I get 102, for example with a GNUstep build on Debian. The > behavior you see is OS and window manager dependent. Sometimes > setting all desired values in one 'modify-frame-parameters' call > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38146 Cc: Markus Triska , 38146@debbugs.gnu.org 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: -1.0 (-) martin rudalics writes: > Here I get 102, for example with a GNUstep build on Debian. The > behavior you see is OS and window manager dependent. Sometimes > setting all desired values in one 'modify-frame-parameters' call > helps. I guess there's nothing to fix here? So I'm closing this bug report. If there's something here that needs work, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 02:04:11 2021 Received: (at control) by debbugs.gnu.org; 30 Jan 2021 07:04:11 +0000 Received: from localhost ([127.0.0.1]:53470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5kIl-0006Yk-1E for submit@debbugs.gnu.org; Sat, 30 Jan 2021 02:04:11 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5kIj-0006YF-A1 for control@debbugs.gnu.org; Sat, 30 Jan 2021 02:04:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gfF8ScVLCmrf6ZfNoho27bMv/gqir5o+TVHPY0rIOww=; b=iSXzWUWsMssZhm6ZL3q6APWJIN nzS+kracEmEfFxApF9of5kdM8LoHbc921ZiObDFk7wVEnpMCES9Tj1mZSC+kX1O18fywIF535kebJ FHYvvl2DzLi74g9PcBeiS8aYqo8C8Sjm+gfq4KKiBZcq87NSJ6CdPHxJRHXSP9hL0ylg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5kIb-0005bh-NA for control@debbugs.gnu.org; Sat, 30 Jan 2021 08:04:03 +0100 Date: Sat, 30 Jan 2021 08:04:00 +0100 Message-Id: <87bld6zz1b.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38146 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 38146 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) close 38146 quit From unknown Wed Jun 25 03:52:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 Feb 2021 12:24:06 +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