help-gnu-emacs
[Top][All Lists]
Advanced

[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: Eli Zaretskii
Subject: Re: How to get the number of displayed line the point is in?
Date: Sun, 03 Jun 2018 18:04:02 +0300

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Sun, 03 Jun 2018 05:58:07 +0200
> 
> as in the subject.  I want to know how far the point is from the top of
> the screen.

Does posn-at-point fit the bill?

> (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.)

Then perhaps pos-visible-in-window-p is your friend?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]