Essentially, is there a function in Emacs like
text-currently-displayed-in-window --> returns two integer
The integers represents the position interval that is currently being displayed on screen in the selected window.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityYou can use window-start
and window-end
to get the buffer positions of the portion that is visible in a window.