From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#38146: 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 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="143943"; mail-complaints-to="usenet@blaine.gmane.org" To: 38146@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 09 10:22:12 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 1iTMwc-000bKZ-Nk for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 10:22:10 +0100 Original-Received: from localhost ([::1]:35464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTMwb-0007ro-J7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 04:22:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42747) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTMwV-0007rT-30 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTMwU-0003fX-0D for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:22:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTMwT-0003fS-Tm for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTMwT-00078w-O1 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 04:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2019 09:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38146 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.157329127527383 (code B ref -1); Sat, 09 Nov 2019 09:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 09:21:15 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by mt-mbpro.localdomain (Postfix, from userid 501) id A4139FE97AC; Sat, 9 Nov 2019 10:21:13 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:171312 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. 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