[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature/icomplete-vertical
From: |
Eli Zaretskii |
Subject: |
Re: feature/icomplete-vertical |
Date: |
Mon, 05 Oct 2020 14:33:44 +0300 |
> Date: Mon, 05 Oct 2020 11:11:28 +0000
> From: Gregory Heytings <ghe@sdf.org>
> cc: João Távora <joaotavora@gmail.com>, spacibba@aol.com,
> emacs-devel@gnu.org, casouri@gmail.com, juri@linkov.net
>
> > Not sure what should be canonical here. AFAIU, just using
> > window-text-pixel-size and comparing with the window dimensions is all
> > that's needed.
>
> Just calculating the window dimensions is already a nontrivial task.
> There are two cases: a miniwindow-only frame, and the "normal" case. In
> the first case you need to use frame-height, and multiply it with the
> pixel height of the "default" face. In the second case you can get the
> maximal dimensions with max-mini-window-height, and multiply it by the
> pixel height of the "default" face. But you cannot just multiply
> max-mini-window-height by that height, that would be too easy. There are
> again two cases: either max-mini-window-height is an integer, in which
> case you can just do that multiplication, or it is a floating point
> number, in which case you have to multiply that number by frame-height and
> truncate it, and multiply the resulting number by the pixel height of the
> "default" face...
Well, if someone wants to write a function which does all that, I'm
sure it will be welcome (assuming that window.el doesn't yet have
something like that already).
- Re: feature/icomplete-vertical, (continued)
Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
- Re: feature/icomplete-vertical, João Távora, 2020/10/05
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
- Re: feature/icomplete-vertical, João Távora, 2020/10/05
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
- Re: feature/icomplete-vertical, João Távora, 2020/10/05
- Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
- Re: feature/icomplete-vertical, Gregory Heytings, 2020/10/05
- Re: feature/icomplete-vertical,
Eli Zaretskii <=
- Re: feature/icomplete-vertical, João Távora, 2020/10/05
Re: feature/icomplete-vertical, martin rudalics, 2020/10/05
Re: feature/icomplete-vertical, Gregory Heytings, 2020/10/05
Re: feature/icomplete-vertical, João Távora, 2020/10/05
Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
Re: feature/icomplete-vertical, João Távora, 2020/10/05
Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
Re: feature/icomplete-vertical, João Távora, 2020/10/05
Re: feature/icomplete-vertical, Eli Zaretskii, 2020/10/05
Re: feature/icomplete-vertical, João Távora, 2020/10/05