[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the number of displayed line the point is in?
From: |
Marcin Borkowski |
Subject: |
Re: How to get the number of displayed line the point is in? |
Date: |
Thu, 07 Jun 2018 19:11:36 +0200 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-06-03, at 09:41, tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sun, Jun 03, 2018 at 05:58:07AM +0200, Marcin Borkowski wrote:
>> Hi all,
>>
>> as in the subject. I want to know how far the point is from the top of
>> the screen. (What I actually need to do is to inert something in the
>> current buffer in such a position so that it appears precisely on the
>> last visible line.)
>
> Is it some combination of `line-number-at-pos' and `window-start' what
> you are looking for?
>
> Besides the section on "Window Start and End Positions" in the elisp
> manual could be a source of inspiration.
Thanks, I'll check these, too (only not within the next 48 hours,
I guess...)
--
Marcin Borkowski
http://mbork.pl