GNU bug report logs - #18195
24.3.92; window-screen-lines is not accurate

Previous Next

Package: emacs;

Reported by: Dmitry <dgutov <at> yandex.ru>

Date: Tue, 5 Aug 2014 02:01:01 UTC

Severity: normal

Found in version 24.3.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 18195 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Dmitry <dgutov <at> yandex.ru>, 18195 <at> debbugs.gnu.org
Subject: Re: bug#18195: 24.3.92; window-screen-lines is not accurate
Date: Tue, 05 Aug 2014 10:38:15 +0200
> 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




This bug report was last modified 10 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.