[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?
From: |
Po Lu |
Subject: |
Re: Correct way to implement `pixel-point-and-height-at-unseen-line'? |
Date: |
Tue, 14 Dec 2021 08:41:06 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> And you didn't describe why do you need
> pixel-point-and-height-at-unseen-line's data in the first place, so
> maybe there's a different solution to whatever you are trying to do
> that doesn't involve such a function.
It's used to find a suitable new start position that's N pixels above
window start, so vscroll can then be set to compensate for the
difference. For instance, scrolling up by a delta of 1 pixel if vscroll
is already zero will move to such a start position, and set vscroll to
the returned height - 1.
Thanks.
Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Eli Zaretskii, 2021/12/13
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?,
Po Lu <=
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Eli Zaretskii, 2021/12/14
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Po Lu, 2021/12/14
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Eli Zaretskii, 2021/12/14
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Po Lu, 2021/12/14
- Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?, Eli Zaretskii, 2021/12/15