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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make scroll-{up, down} move point to {start, end} of newly visible t


From: Eli Zaretskii
Subject: Re: Make scroll-{up, down} move point to {start, end} of newly visible text
Date: Fri, 11 Aug 2023 21:40:48 +0300

> From: Emanuel Berg <incal@dataswamp.org>
> Date: Fri, 11 Aug 2023 14:19:23 +0200
> 
> Eli Zaretskii wrote:
> 
> > So now please explain what you mean by "the state of
> > scrolling" and how would you determine that "scrolling does
> > not make any sense"?
> 
> For example, in this very window I look at right now, the
> whole lower part of the buffer is displayed - it says "Bottom"
> in the mode bar - still I can scroll down even more, and - what
> Emacs calls scroll "up" BTW - by evaluating this
> 
> (scroll-up 1)
> 
> to just show more and more empty space.
> 
> If we can find out from Elisp that we are already at the
> bottom, we wouldn't do that in a supposed wrapper function.
> I don't know how to find that out but if possible and anyone
> knows do tell as then I could write the function easily that
> I had in mind and show you.

You can find it in the simple cases like the one you describe, but not
in general.  For example, if you scroll by N window-fulls , it is
usually impossible to know in advance whether the last window will
show EOB with empty space after it.



reply via email to

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