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: Thu, 10 Aug 2023 20:33:43 +0300

> From: Emanuel Berg <incal@dataswamp.org>
> Date: Wed, 09 Aug 2023 22:59:22 +0200
> 
> Eli Zaretskii wrote:
> 
> > I think your mental model of how scrolling works in Emacs is
> > not accurate. [...]
> 
> That can be helped,
> 
> (defun scroll-up-1 ()
>   (interactive)
>   (scroll-down 1) )
> 
> (defun scroll-down-1 ()
>   (interactive)
>   (scroll-up 1) )

I asked what you thought happens in Emacs as part of the call to
scroll-down.  If you think that function actually scrolls the text in
the window, then that's not what happens in reality.  The scrolling is
performed as part of redisplay, after scroll-up exits.



reply via email to

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