GNU bug report logs - #43105
(window-body-height) Reporting Too Large of Value

Previous Next

Package: emacs;

Reported by: William Carroll <wpcarro <at> gmail.com>

Date: Sat, 29 Aug 2020 18:07:01 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: William Carroll <wpcarro <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: (window-body-height) Reporting Too Large of Value
Date: Sat, 29 Aug 2020 18:10:17 +0100
[Message part 1 (text/plain, inline)]
I believe `(window-body-height)` does not account for non-zero
`line-spacing` amounts. This causes `(window-body-height)` in graphical
Emacs to report values larger than the number of lines of text that can
render on the screen.

This affects programs like vterm.el and others that rely on
`(window-body-height)`. In my particular case, when I ran `man` and `less`
from vterm.el, it rendered things above the top "fold" of the screen.

When I tried to reproduce these issues with `emacs -nw`, everything was
fine. I imagine this is because `emacs -nw` disregards `line-spacing`.

I'm happy to share more information to help someone reproduce this issue.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 264 days ago.

Previous Next


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