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#15336: Bad computation of window height Date: Fri, 24 Oct 2014 19:52:30 +0200 Message-ID: <544A91DE.2050001@gmx.at> References: <86bo3za8af.fsf@somewhere.org> <86vbn9tux0.fsf@example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414173209 6566 80.91.229.3 (24 Oct 2014 17:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 17:53:29 +0000 (UTC) To: Sebastien Vauban , 15336@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 19:53: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 1Xhj3B-0006VJ-Iu for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 19:53:21 +0200 Original-Received: from localhost ([::1]:49747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhj3B-0006F1-2e for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 13:53:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhj30-0006B3-Ks for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 13:53:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xhj2t-0002Qd-5y for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 13:53:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhj2t-0002QZ-2G for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 13:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xhj2s-0001Q3-GT for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 13:53: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: Fri, 24 Oct 2014 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15336-submit@debbugs.gnu.org id=B15336.14141731705437 (code B ref 15336); Fri, 24 Oct 2014 17:53:02 +0000 Original-Received: (at 15336) by debbugs.gnu.org; 24 Oct 2014 17:52:50 +0000 Original-Received: from localhost ([127.0.0.1]:34277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xhj2f-0001Pd-Nl for submit@debbugs.gnu.org; Fri, 24 Oct 2014 13:52:49 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:59487) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xhj2c-0001PO-Ql for 15336@debbugs.gnu.org; Fri, 24 Oct 2014 13:52:47 -0400 Original-Received: from [178.190.162.75] ([178.190.162.75]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lm2lZ-1YH3iz1dSb-00ZcxP; Fri, 24 Oct 2014 19:52:40 +0200 In-Reply-To: <86vbn9tux0.fsf@example.com> X-Provags-ID: V03:K0:hSBWFPhH7PkI3GfMnfJzcBsyDMHA6eCH4ZusdNDliyw2QN4Vde7 MdVXZRT0fF2BNCCJspqq0jTWI/AOqjkj0L1GJ5PUMWIZafpgHQxZz+IXR8RRKoptmYBOtyX 9KN3FThpIuWLG5LaCJRuz4ZNKQg1xniU6X54826JeRBWpSit3Y0rKprHO1l+WrsEukxUR0X tKh9BZFQzkaBiZsY6lZbQ== 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:95033 > ;; auto-detect the screen dimensions and compute the height of Emacs > (add-to-list 'default-frame-alist > (cons 'height > (/ (- (x-display-pixel-height) 106) x-display-pixel-height is a built-in function in `C source code'. [...] On "multi-monitor" setups this refers to the pixel height for all physical monitors associated with DISPLAY. To get information for each physical monitor, use `display-monitor-attributes-list'. And since you are (presumably) on Windows this coincides with the documentation of SM_CYVIRTUALSCREEN: The height of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN metric is the coordinates for the top of the virtual screen. > (frame-char-height)))) So what does (x-display-pixel-height) return on your system? martin