GNU bug report logs -
#50178
28.0.50; Size of echo area does not account for line-spacing
Previous Next
Reported by: Óscar Fuentes <ofv <at> wanadoo.es>
Date: Tue, 24 Aug 2021 02:09:02 UTC
Severity: normal
Found in version 28.0.50
Done: Óscar Fuentes <ofv <at> wanadoo.es>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Óscar Fuentes <ofv <at> wanadoo.es>
> Date: Wed, 25 Aug 2021 19:09:14 +0200
> Cc: 50178-done <at> debbugs.gnu.org
>
> Gregory Heytings <gregory <at> heytings.org> writes:
>
> > Try emacs -Q, C-h h to see why it is impossible to have "an API that
> > returns how many lines fit on a given window".
>
> Any graphics environment worth its salt has methods for measuring
> whatever object without actually rendering it.
So does Emacs: that's what window-text-pixel-size does.
> If an integer, it specifies the maximum height in units of the
> mini-window frame’s default font’s height.
> "
>
> Why that was implemented that way? (instead of using pixels, for
> instance.)
Because in most cases it's more useful: it approximates the actual
number of lines quite well.
This bug report was last modified 3 years and 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.