From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#15336: Bad computation of window height Date: Fri, 24 Oct 2014 16:16:27 +0200 Organization: Sebastien Vauban Message-ID: <86vbn9tux0.fsf@example.com> References: <86bo3za8af.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414160366 14207 80.91.229.3 (24 Oct 2014 14:19:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 14:19:26 +0000 (UTC) To: 15336-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Oct 24 16:19:19 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 1Xhfi2-0003ix-VH for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 16:19:19 +0200 Original-Received: from localhost ([::1]:48940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhfi2-00082n-2G for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 10:19:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhfhs-00082b-SD for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 24 Oct 2014 10:19:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xhfhm-0006eu-O3 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 24 Oct 2014 10:19:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhfhm-0006ep-Kk for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 24 Oct 2014 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xhfhl-0004ez-Mw for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 24 Oct 2014 10:19:01 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org In-Reply-To: <86bo3za8af.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org> Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Fri, 24 Oct 2014 14:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 15336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15336-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B15336.141416032017882 (code B ref 15336); Fri, 24 Oct 2014 14:19:01 +0000 Original-Received: (at 15336) by debbugs.gnu.org; 24 Oct 2014 14:18:40 +0000 Original-Received: from localhost ([127.0.0.1]:34214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhfhQ-0004eM-7Z for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 24 Oct 2014 10:18:40 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:64479 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhfhN-0004e6-Ld for 15336-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 24 Oct 2014 10:18:38 -0400 Original-Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id 606DE500ADC for <15336-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org>; Fri, 24 Oct 2014 16:18:31 +0200 (CEST) X-Url: Under construction... X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.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-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:95024 Hello, Just wanted to inform you that the bug #15336 is still reproducible in Emacs 24.4 and Emacs 25.0.50.1. One side note though: I have 2 screens, and they are set up one above the other (physically and logically). |----------------------| | screen #2 (external) | <-- 1680 x 1050 |----------------------| | screen #1 (laptop) | <-- 1920 x 1080 (Full HD) |----------------------| That may impact what I see on Emacs 25.0.50.1. With the following code: --8<---------------cut here---------------start------------->8--- (when (display-graphic-p) ;; put Emacs exactly where you want it, every time it starts up (setq initial-frame-alist '((top . 0) (left . 0))) ;; auto-detect the screen dimensions and compute the height of Emacs (add-to-list 'default-frame-alist (cons 'height (/ (- (x-display-pixel-height) 106) (frame-char-height)))) ;; maximize Emacs by default (modify-all-frames-parameters '((fullscreen . maximized)))) --8<---------------cut here---------------end--------------->8--- I'm expecting to have Emacs maximized at startup, on the main screen, that is occupying the full space of screen #1: 1920 x 1080. What I get, instead, is an Emacs frame of (1680 + 1920) x 1080... whose top-right corner is located at the top-right corner of screen #1 (hence, I don't even see its full height, without minimizing and re-maximizing it first). Best regards.