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: Emanuel Berg
Subject: Re: Make scroll-{up, down} move point to {start, end} of newly visible text
Date: Thu, 10 Aug 2023 20:06:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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.

But it can still be controlled from Elisp. We would have
another function around the scroll function, and that other
function would be used instead. Normally it would just call
the scroll function. Normally - but not always :)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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