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#18195: 24.3.92; window-screen-lines is not accurate Date: Tue, 05 Aug 2014 10:38:15 +0200 Message-ID: <53E097F7.5050407@gmx.at> References: <86tx5r7l1j.fsf@yandex.ru> 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 1407227961 23270 80.91.229.3 (5 Aug 2014 08:39:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 08:39:21 +0000 (UTC) To: Dmitry , 18195@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 10:39:16 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 1XEaH5-0002vF-JT for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 10:39:15 +0200 Original-Received: from localhost ([::1]:57757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEaH5-0001P3-8Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 04:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEaGx-0001OQ-Hm for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 04:39:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEaGs-0000tU-CB for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 04:39:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEaGs-0000tP-8Y for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 04:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEaGr-0007sc-Sl for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 04:39: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: Tue, 05 Aug 2014 08:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18195-submit@debbugs.gnu.org id=B18195.140722791430225 (code B ref 18195); Tue, 05 Aug 2014 08:39:01 +0000 Original-Received: (at 18195) by debbugs.gnu.org; 5 Aug 2014 08:38:34 +0000 Original-Received: from localhost ([127.0.0.1]:58234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEaGP-0007rR-5h for submit@debbugs.gnu.org; Tue, 05 Aug 2014 04:38:33 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60203) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEaGJ-0007r8-Sq for 18195@debbugs.gnu.org; Tue, 05 Aug 2014 04:38:29 -0400 Original-Received: from [93.82.78.228] ([93.82.78.228]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MPDeK-1XIxyO1KW8-004PDs; Tue, 05 Aug 2014 10:38:20 +0200 In-Reply-To: <86tx5r7l1j.fsf@yandex.ru> X-Provags-ID: V03:K0:vtzrEPF2LuH8OJk/pyzw5mz8N7WeqMj7Uam+EzR+acnuM0OUPR4 Ga4j8O2VxVWha0qrJU/WNuxbGiSx6V7zsSZlXIFCBenfCe1EhOuUUJHQveS1/x2+m4CUbip gidQmA9594sJ55Cw+N6rluuugYEaC3ONv+6TRmLHUs+OaGATAzqW+BfaSijLlV5KA1/gyFw E+v48FUL3jW44AvGvYcEg== 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:92120 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 IIUC https://github.com/company-mode/company-mode/issues/160#issuecomment-51022508 mentioned in that thread, all you want is to display all lines of a completion buffer. Is that correct? If so, then why can't/don't you use `fit-window-to-buffer'? martin