From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#18215: 24.4.50; OSX 10.6.8; set-frame-size by pixelwise does not work following `make-fame`. Date: Sat, 16 Aug 2014 16:35:29 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1408232191 697 80.91.229.3 (16 Aug 2014 23:36:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 23:36:31 +0000 (UTC) Cc: 18215@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 01:36:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XInWE-0003UX-9p for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 01:36:18 +0200 Original-Received: from localhost ([::1]:37010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XInWD-00044D-TL for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Aug 2014 19:36:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XInW5-00043F-3I for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 19:36:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XInVy-0005Lm-Oi for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 19:36:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XInVy-0005Lh-IA for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 19:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XInVy-0000HL-6H for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 19:36:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Aug 2014 23:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18215-submit@debbugs.gnu.org id=B18215.14082321431047 (code B ref 18215); Sat, 16 Aug 2014 23:36:02 +0000 Original-Received: (at 18215) by debbugs.gnu.org; 16 Aug 2014 23:35:43 +0000 Original-Received: from localhost ([127.0.0.1]:44947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XInVd-0000Gh-WD for submit@debbugs.gnu.org; Sat, 16 Aug 2014 19:35:42 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:39942) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XInVY-0000GM-Pm for 18215@debbugs.gnu.org; Sat, 16 Aug 2014 19:35:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Cc:Subject:To:From:Message-ID:Date; bh=sbBy/Y0AkzqdbxVfphi9LtMPFzJxb6d3FNyh9AXztDU=; b=f5NusVLfjwThXaimY5Mm1xYT8hSTG6IkfvP8J3qBFqFyVOYTgnFSD6lXVWaffKiwVJT9yvOIbcq0RSnR9lStWQyz9z2miHVl7HVCXf0NoXumYr2PPBbOYjjYSYJH2Xch; Original-Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:51838 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1XInVQ-0000vg-Fq; Sat, 16 Aug 2014 19:35:28 -0400 User-Agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92494 Archived-At: The screen that is being used to run the following tests is 1920 by 1080. An Emacs frame pixel of 1920 x 1058 fills the screen entirely when: no Emacs menu-bar, no Emacs tool-bar, and the OSX menu-bar is hidden. Until running the tests today, I had never used `frame-resize-pixelwise` before. The test that was previously reported in a prior e-mail with 1926 pixels in width was due to trying to use the same settings for a version of Emacs built on June 1, 2014 and a version of Emacs built in mid-August 2014. The tests that I ran today were done with an August 15, 2014 Emacs Trunk -- unpatched and patched using the latest patch from Martin (08/15/2014). ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; TEST # 1 The following `window--dump-frame` printout was based on an UN-patched version of Emacs Trunk built on August 15, 2014 using the following settings. The frame fills the entire screen, and is what I consider to be perfect. (setq frame-resize-pixelwise t) (set-face-attribute 'default (selected-frame) :font "-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1") (menu-bar-mode -1) (tool-bar-mode -1) (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil)) (setq ns-auto-hide-menu-bar t) (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 1905 1054 t) frame pixel: 1920 x 1058 cols/lines: 174 x 52 units: 11 x 20 frame text pixel: 1905 x 1054 cols/lines: 173 x 52 tool: 0 scroll: 0/0 fringe: 11 border: 2 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1916 x 1034 new: 0 char left: 0 top: 0 size: 174 x 51 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 1014 char: 173 x 50 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 20 divider: 0 # parent: nil pixel left: 0 top: 1034 size: 1916 x 20 new: 0 char left: 0 top: 51 size: 1916 x 1 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 20 char: 173 x 1 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; TEST # 2 The following `window--dump-frame` printout was based on an UN-patched version of Emacs Trunk built on August 15, 2014 using the following settings, and then manually typing `M-x toggle-frame-maximzed` after startup. The frame does NOT fill the screen in either direction -- i.e., height is off by 14 pixels, and width is off by 2 pixels. (setq frame-resize-pixelwise t) (set-face-attribute 'default (selected-frame) :font "-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1") (menu-bar-mode -1) (tool-bar-mode -1) (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil)) (setq ns-auto-hide-menu-bar t) frame pixel: 1918 x 1044 cols/lines: 174 x 52 units: 11 x 20 frame text pixel: 1903 x 1040 cols/lines: 173 x 52 tool: 0 scroll: 0/0 fringe: 11 border: 2 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1914 x 1020 new: 0 char left: 0 top: 0 size: 174 x 51 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1903 x 1000 char: 173 x 50 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 20 divider: 0 # parent: nil pixel left: 0 top: 1020 size: 1914 x 20 new: 0 char left: 0 top: 51 size: 1914 x 1 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1903 x 20 char: 173 x 1 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; TEST # 3 The following `window--dump-frame` printout was based on a PATCHED (nsterm.m 08/15/2014) version of Emacs Trunk built on August 15, 2014 using the following settings. The frame fills the entire screen, and is what I consider to be perfect. (setq frame-resize-pixelwise t) (set-face-attribute 'default (selected-frame) :font "-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1") (menu-bar-mode -1) (tool-bar-mode -1) (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil)) (setq ns-auto-hide-menu-bar t) (set-frame-position (selected-frame) 0 0) (set-frame-size (selected-frame) 1905 1054 t) frame pixel: 1920 x 1058 cols/lines: 174 x 52 units: 11 x 20 frame text pixel: 1905 x 1054 cols/lines: 173 x 52 tool: 0 scroll: 0/0 fringe: 11 border: 2 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1916 x 1034 new: 0 char left: 0 top: 0 size: 174 x 51 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 1014 char: 173 x 50 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 20 divider: 0 # parent: nil pixel left: 0 top: 1034 size: 1916 x 20 new: 0 char left: 0 top: 51 size: 1916 x 1 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 20 char: 173 x 1 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; TEST # 4 The following `window--dump-frame` printout was based on a PATCHED (nsterm.m 08/15/2014) version of Emacs Trunk built on August 15, 2014 using the following settings, and then manually typing `M-x toggle-frame-maximzed` after startup. The width is now perfect (i.e., 1920). The height is almost perfect -- i.e., 1054 -- it looks like about 2 pixels to the top of the screen are not filled, and about 2 pixels to the bottom of the screen are not filled. (setq frame-resize-pixelwise t) (set-face-attribute 'default (selected-frame) :font "-*-Courier-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1") (menu-bar-mode -1) (tool-bar-mode -1) (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) (add-to-list 'default-frame-alist '(vertical-scroll-bars . nil)) (setq ns-auto-hide-menu-bar t) frame pixel: 1920 x 1054 cols/lines: 174 x 52 units: 11 x 20 frame text pixel: 1905 x 1050 cols/lines: 173 x 52 tool: 0 scroll: 0/0 fringe: 11 border: 2 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1916 x 1030 new: 0 char left: 0 top: 0 size: 174 x 51 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 1010 char: 173 x 50 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 20 divider: 0 # parent: nil pixel left: 0 top: 1030 size: 1916 x 20 new: 0 char left: 0 top: 51 size: 1916 x 1 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 1905 x 20 char: 173 x 1 width left fringe: 11 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Fri, 15 Aug 2014 17:52:25 +0200, martin rudalics wrote: > > > I see no difference between the default behavior of August 13, 2014 Emacs Trunk (before applying the patch), versus after applying the August 12, 2014 patch of nsterm.m. > > I wasn't expecting too much from it anyway :-( > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > > > *window-frame-dump*_06_01_2014.txt > > > > frame pixel: 1926 x 1058 cols/lines: 174 x 52 units: 11 x 20 > > frame text pixel: 1900 x 1054 cols/lines: 172 x 52 > > I suppose the 1926 is now 6 pixels too wide for a display width of 1920 > and this comes from adding the 6 pixels for the changes in the fringe > calculations. Correct? > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > > > *window_frame_dump*_08_13_2014.txt > > > > frame pixel: 1920 x 1058 cols/lines: 175 x 52 units: 11 x 20 > > frame text pixel: 1900 x 1054 cols/lines: 172 x 52 > > Are these now the intended values? > > BTW have you set `frame-resize-pixelwise' to t? If you don't, Emacs > will round sizes to character multiples. > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > > > Printout with `toggle-frame-maximzed` following Emacs -Q > > > > frame pixel: 1920 x 1000 cols/lines: 275 x 62 units: 7 x 16 > > frame text pixel: 1885 x 996 cols/lines: 269 x 62 > > This means that the width isn't too far away from the other two but the > height is quite different - maybe to account for a taskbar. I attach > yet another patch for nsterm. You have to set `frame-resize-pixelwise' > in your .emacs to some non-nil value for it (but you should have done > that already as mentioned above). > > martin