[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: move_it_vertically_backward question
From: |
Po Lu |
Subject: |
Re: move_it_vertically_backward question |
Date: |
Thu, 16 Dec 2021 08:41:46 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> We have code in the display engine that does this in several places.
> For example, look at what we do when we recenter the window in
> redisplay_window. We could factor that code out of there, put it in a
> separate function, and teach window-text-pixel-size to find the FROM
> position using that new function. Then the value of the TO argument
> for window-text-pixel-size is of course well known, and you could run
> the rest of the function to provide you with the pixel dimensions of
> the text in-between.
>
> Would that fit the bill?
I think it would, with the addition of a way to specify "the end of the
visual line preceeding window start" as the TO argument. That is
because window start could be inside a screen line, causing its height
to be taken into account when `window-text-pixel-size' calculates
height.
Thanks.
- Re: move_it_vertically_backward question, (continued)
- Re: move_it_vertically_backward question, Po Lu, 2021/12/14
- Re: move_it_vertically_backward question, Po Lu, 2021/12/15
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/15
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/15
- Re: move_it_vertically_backward question, Po Lu, 2021/12/15
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/15
- Re: move_it_vertically_backward question,
Po Lu <=
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/16
- Re: move_it_vertically_backward question, Po Lu, 2021/12/16
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/16
- Re: move_it_vertically_backward question, Po Lu, 2021/12/16
- Re: move_it_vertically_backward question, Po Lu, 2021/12/16
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/16
- Re: move_it_vertically_backward question, Po Lu, 2021/12/16
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/16
- Re: move_it_vertically_backward question, Po Lu, 2021/12/16
- Re: move_it_vertically_backward question, Eli Zaretskii, 2021/12/18