From: martin rudalics <rudalics@gmx.at>
To: Dmitry <dgutov@yandex.ru>, 18195@debbugs.gnu.org
Subject: bug#18195: 24.3.92; window-screen-lines is not accurate
Date: Tue, 05 Aug 2014 10:38:15 +0200 [thread overview]
Message-ID: <53E097F7.5050407@gmx.at> (raw)
In-Reply-To: <86tx5r7l1j.fsf@yandex.ru>
> 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
next prev parent reply other threads:[~2014-08-05 8:38 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 2:00 bug#18195: 24.3.92; window-screen-lines is not accurate Dmitry
2014-08-05 8:38 ` martin rudalics [this message]
2014-08-05 10:03 ` Dmitry Gutov
2014-08-05 10:16 ` martin rudalics
2014-08-05 10:24 ` Dmitry Gutov
2014-08-05 12:20 ` martin rudalics
2014-08-05 13:05 ` Dmitry Gutov
2014-08-05 13:50 ` martin rudalics
2014-08-05 14:06 ` Eli Zaretskii
2014-08-06 11:55 ` Dmitry Gutov
2014-08-06 16:13 ` martin rudalics
2014-08-05 14:01 ` Eli Zaretskii
2014-08-05 13:58 ` Eli Zaretskii
2014-08-05 14:08 ` martin rudalics
2014-08-05 14:13 ` Eli Zaretskii
2014-08-05 13:57 ` Eli Zaretskii
2014-08-05 13:51 ` Eli Zaretskii
2014-08-05 13:57 ` martin rudalics
2014-08-05 14:09 ` Eli Zaretskii
2014-08-05 14:12 ` martin rudalics
2014-08-05 14:23 ` Eli Zaretskii
2014-08-05 14:38 ` martin rudalics
2014-08-05 15:08 ` Eli Zaretskii
2014-08-05 15:45 ` martin rudalics
2014-08-05 17:57 ` Eli Zaretskii
2014-08-06 9:41 ` martin rudalics
2014-08-06 14:39 ` Eli Zaretskii
2014-08-06 14:41 ` Dmitry Gutov
2014-08-06 16:23 ` Eli Zaretskii
2014-08-06 16:26 ` Dmitry Gutov
2014-08-06 17:24 ` Eli Zaretskii
2014-08-06 18:02 ` Dmitry Gutov
2014-08-06 18:36 ` Eli Zaretskii
2014-08-06 21:09 ` Dmitry Gutov
2014-08-06 16:15 ` martin rudalics
2014-08-06 16:30 ` Eli Zaretskii
2014-08-06 17:46 ` martin rudalics
2014-08-06 18:03 ` Eli Zaretskii
2014-08-07 15:08 ` martin rudalics
2014-08-07 15:35 ` Eli Zaretskii
2014-08-07 15:39 ` martin rudalics
2014-08-07 16:36 ` Eli Zaretskii
2014-08-08 8:41 ` martin rudalics
2014-08-08 9:16 ` Eli Zaretskii
2014-08-08 10:10 ` martin rudalics
2014-08-08 10:25 ` Eli Zaretskii
2014-08-05 13:46 ` Eli Zaretskii
2014-08-05 21:21 ` Dmitry Gutov
2014-08-06 2:52 ` Eli Zaretskii
2014-08-06 12:09 ` Dmitry Gutov
2014-08-06 14:45 ` Eli Zaretskii
2014-08-06 15:07 ` Dmitry Gutov
2014-08-06 16:25 ` Eli Zaretskii
2014-08-06 16:37 ` Dmitry Gutov
2014-08-06 17:26 ` Eli Zaretskii
2014-08-05 13:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53E097F7.5050407@gmx.at \
--to=rudalics@gmx.at \
--cc=18195@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).