From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#38146: 26.1; set-frame-width sometimes does not work on OSX Date: Sun, 10 Nov 2019 11:01:26 +0100 Message-ID: <79a46cef-2b63-a175-71e5-8279e48a3815@gmx.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="99588"; mail-complaints-to="usenet@blaine.gmane.org" To: Markus Triska , 38146@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 10 11:02:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTk3A-000PkE-Ku for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2019 11:02:28 +0100 Original-Received: from localhost ([::1]:42246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTk39-0005fg-2Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2019 05:02:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52994) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTk2l-0005fV-Al for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 05:02:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTk2k-0001Ea-7y for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 05:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41809) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTk2k-0001EU-29 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 05:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTk2j-0000VU-UF for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 05:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2019 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38146 X-GNU-PR-Package: emacs Original-Received: via spool by 38146-submit@debbugs.gnu.org id=B38146.15733800991919 (code B ref 38146); Sun, 10 Nov 2019 10:02:01 +0000 Original-Received: (at 38146) by debbugs.gnu.org; 10 Nov 2019 10:01:39 +0000 Original-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 Original-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 Original-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 In-Reply-To: Content-Language: de-AT X-Provags-ID: V03:K1:XOyfqQLitd1NRH80eYw6kagNmT6JMdOXC7oFwGOOAFBq/yalbTT 85IltnTZR7mJliqg40LVEfX/5oHFsNIFD/mj4NEwiHQBNQgcUd1DKgpHAk+iF+T/JrmcIn1 0ttTQCSMotLypiRtQN5t3ns/5oQIQ3EaGNYOPzrrJajqt7Nx6Tx1TUILUKo1sBW13knmyzd W8G1Y0W7M2ZtqPgLIZPXg== 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 D0oBgLMy7rd6uJfatMoGR4wHn60oFLkBSax7zWnOP51y4CH9K6IFZm64g54VvWoSn23iePyU X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171377 Archived-At: > 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