From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics 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: Sun, 17 Aug 2014 12:12:46 +0200 Message-ID: <53F0801E.7010404@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408270468 19059 80.91.229.3 (17 Aug 2014 10:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2014 10:14:28 +0000 (UTC) Cc: 18215@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 12:14: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 1XIxTg-00062y-S5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 12:14:21 +0200 Original-Received: from localhost ([::1]:38150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIxTg-0008Qa-Bi for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 06:14:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIxTV-0008PD-VJ for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2014 06:14:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIxTO-0002gg-F9 for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2014 06:14:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIxTO-0002gc-C4 for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2014 06:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XIxTN-0002CM-Vv for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2014 06:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Aug 2014 10:14:01 +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.14082703848337 (code B ref 18215); Sun, 17 Aug 2014 10:14:01 +0000 Original-Received: (at 18215) by debbugs.gnu.org; 17 Aug 2014 10:13:04 +0000 Original-Received: from localhost ([127.0.0.1]:45136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIxSR-0002AH-HR for submit@debbugs.gnu.org; Sun, 17 Aug 2014 06:13:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53974) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIxSP-00029d-6Z for 18215@debbugs.gnu.org; Sun, 17 Aug 2014 06:13:02 -0400 Original-Received: from [93.82.8.189] ([93.82.8.189]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LyA2L-1WGKH84BzZ-015bqK; Sun, 17 Aug 2014 12:12:52 +0200 In-Reply-To: X-Provags-ID: V03:K0:hjeRpdo6qn0RrYcWPY0/AZlILPWpJ9prtOKZCbPN0dry9qi4VsT cEv6lCRL07ykjKQ0i6gpI0HuC2ZTeKHnQXW0OnZ473mgHTEx6BW3x87zM7bTnmhMmNbdgiW Gu+3VeFO2wqfmUGano45chaLBc0DfK8v9bQ306UsExUqz8BsaRQo1LtDVqfapWInovdpG8o Ujq1M5s8O5RAasJFWHYbw== X-UI-Out-Filterresults: notjunk:1; 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:92495 Archived-At: > 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 Just for checking: If you change the following two forms (add-to-list 'default-frame-alist '(left-fringe . 11)) (set-frame-size (selected-frame) 1905 1054 t) to say (add-to-list 'default-frame-alist '(left-fringe . 17)) (set-frame-size (selected-frame) 1899 1054 t) do you still get the same value for the frame pixel width, namely 1920? > 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 I don't understand how these get calculated: (* 11 174) gets me 1914. Add 4 pixels for the internal border gets me 1918. Where do those two pixels missing to 1920 go to or come from? (* 20 52) gets me 1040. Add 4 pixels for the internal border gets me 1044. 10 pixels missing to 1054 for what? Do you have any means to trigger maximization from the window manager via some sort of maximize button? BTW, can you run Emacs under GDB? martin