[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50178: 28.0.50; Size of echo area does not account for line-spacing
From: |
Óscar Fuentes |
Subject: |
bug#50178: 28.0.50; Size of echo area does not account for line-spacing |
Date: |
Wed, 25 Aug 2021 19:09:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Gregory Heytings <gregory@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. It's also true that those
systems work on pixels (or some other suitable, fine-grained unit) all
the way, they do not reveal themselves as TTY-oriented systems when the
user says "ok, then put this right here." The impossibility you mention
is a limitation of Emacs.
So going back to Emacs, the doctstring of max-mini-window-height is
"...
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.) Maybe because the relevant use case was to support resizing
the mini window on a way that guarantees that certain number of lines
(rendered on the default font) will fit on it?
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, (continued)
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/24
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Óscar Fuentes, 2021/08/24
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/24
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Óscar Fuentes, 2021/08/24
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/24
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, martin rudalics, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Gregory Heytings, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Óscar Fuentes, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Gregory Heytings, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing,
Óscar Fuentes <=
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Óscar Fuentes, 2021/08/25
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/26
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, martin rudalics, 2021/08/26
- bug#50178: 28.0.50; Size of echo area does not account for line-spacing, Eli Zaretskii, 2021/08/26