Received: (at 38146) by debbugs.gnu.org; 10 Nov 2019 10:01:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 10 05:01:39 2019 Received: from localhost ([127.0.0.1]:50630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iTk2M-0000Ut-NR for submit <at> 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 <rudalics@HIDDEN>) id 1iTk2K-0000Ue-UN for 38146 <at> 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 <triska@HIDDEN>, 38146 <at> debbugs.gnu.org References: <m2v9rtjth2.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> Message-ID: <79a46cef-2b63-a175-71e5-8279e48a3815@HIDDEN> Date: Sun, 10 Nov 2019 11:01:26 +0100 MIME-Version: 1.0 In-Reply-To: <m2v9rtjth2.fsf@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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
bug-gnu-emacs@HIDDEN
:bug#38146
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 09:21:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 09 04:21:14 2019 Received: from localhost ([127.0.0.1]:48187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iTMvi-00077a-Kf for submit <at> 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 <triska@HIDDEN>) id 1iTMvg-00077Q-AC for submit <at> 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 <triska@HIDDEN>) id 1iTMve-0007OK-Vx for bug-gnu-emacs@HIDDEN; 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 <triska@HIDDEN>) id 1iTMvd-0003TI-Q0 for bug-gnu-emacs@HIDDEN; 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 <triska@HIDDEN>) id 1iTMvd-0003SS-Jn for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <triska@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 26.1; set-frame-width sometimes does not work on OSX Date: Sat, 09 Nov 2019 10:21:13 +0100 Message-ID: <m2v9rtjth2.fsf@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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
Markus Triska <triska@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#38146
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.