[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.
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, (continued)
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Spencer Baugh, 2023/08/01
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Spencer Baugh, 2023/08/03
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/04
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/08
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/08
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/10
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/10
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/11
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/11
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/11
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text,
Eli Zaretskii <=
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/12
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/12
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/12
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/12
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/13
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/13
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/22
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/22
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Emanuel Berg, 2023/08/23
- Re: Make scroll-{up, down} move point to {start, end} of newly visible text, Eli Zaretskii, 2023/08/24