From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Newsgroups: gmane.emacs.bugs Subject: bug#18195: 24.3.92; window-screen-lines is not accurate Date: Tue, 05 Aug 2014 06:00:24 +0400 Message-ID: <86tx5r7l1j.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407204082 24423 80.91.229.3 (5 Aug 2014 02:01:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 02:01:22 +0000 (UTC) To: 18195@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 04:01:17 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 1XEU3v-0001HR-Ix for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 04:01:15 +0200 Original-Received: from localhost ([::1]:55893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3u-00032A-Tl for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 22:01:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3n-000325-3y for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:01:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEU3i-0008QO-Bb for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:01:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3i-0008QK-8K for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEU3h-00064f-OL for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Aug 2014 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140720405423326 (code B ref -1); Tue, 05 Aug 2014 02:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2014 02:00:54 +0000 Original-Received: from localhost ([127.0.0.1]:58048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEU3a-000649-0S for submit@debbugs.gnu.org; Mon, 04 Aug 2014 22:00:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEU3X-00063w-IF for submit@debbugs.gnu.org; Mon, 04 Aug 2014 22:00:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEU3N-0008My-DO for submit@debbugs.gnu.org; Mon, 04 Aug 2014 22:00:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3N-0008Mr-3D for submit@debbugs.gnu.org; Mon, 04 Aug 2014 22:00:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3I-00030s-1Q for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:00:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEU3D-0008JS-5J for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:00:35 -0400 Original-Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:37458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEU3C-0008JI-T1 for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 22:00:31 -0400 Original-Received: by mail-lb0-f173.google.com with SMTP id p9so193606lbv.18 for ; Mon, 04 Aug 2014 19:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=9KCxNeyJqb/hpku5tMU4eA8zf3oIetEAY6PK/Azv9jk=; b=MqhXWbzTrznCa/RjO+rTUreYmJSfbp6HW3PyEisY0xdY3Bww9mMxiDwbMSyxMMGAj4 WF4tSmcA5Z3cCjvmfk+yT9BBF4K99kMykiTvk7ecunxgG213zvj6jUWV0P+MKJaEg35K +qGItW9sU/EuxLuwevLfi55HzsVAkIxplgxCM45gxXFo6Soj0z8iigON3OrRRMkAA8ct L3RK1J+tCEBnOy7yqcgOGHTFJ/cDE8ZxEZ54J23X2b/7nPtlCGammFaZgOnOLho8jcZA gB8DtAgoW2SXOe751PViacMGxV8RGg3XtzUOpOXDZFfF46Lo//ePN6N+MHjQNdKnswUh SB7g== X-Received: by 10.152.2.3 with SMTP id 3mr646183laq.8.1407204029664; Mon, 04 Aug 2014 19:00:29 -0700 (PDT) Original-Received: from axl (v-2-eu19-d3962-07.webazilla.com. [78.140.151.7]) by mx.google.com with ESMTPSA id t7sm140119lat.16.2014.08.04.19.00.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 04 Aug 2014 19:00:29 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:92115 Archived-At: If I have line-spacing set, the value the above function returns is smaller than the actuall number of screen lines the window can contain. For example, when I have the current Emacs frame maximized and line-spacing set to 0.2, (window-screen-lines) returns 46.66(6), whereas there are 48 fully-visible lines in the given window and one partially-visible one. Here's my default font: (set-face-attribute 'default nil :height 105 :family "Fira Mono") Related: http://lists.gnu.org/archive/html/help-gnu-emacs/2014-08/msg00026.html In GNU Emacs 24.3.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-07-24 on axl Repository revision: 117398 stephen.berman@gmx.net-20140722213204-51v7bp0chfei6wbx Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS