emacs-devel
[Top][All Lists]
Advanced

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

Re: Is it somehow possible to meaningfully use window-start during a 're


From: Eli Zaretskii
Subject: Re: Is it somehow possible to meaningfully use window-start during a 'redisplay'?
Date: Sat, 11 Nov 2023 12:13:57 +0200

> From: dalanicolai <dalanicolai@gmail.com>
> Date: Mon, 6 Nov 2023 15:25:39 +0100
> 
> However, the 'window-scroll-functions' docstring says that the value
> of window-end is not valid in such a function, which indeed it is not
> without passing the update argument. Could it be that the value of
> window-end actually is valid when passing the update argument, as it
> appears to be?

In most cases, when you call window-end with UPDATE argument non-nil,
the value will be valid, but I don't recommend relying on that without
testing, especially when all kinds of non-default modes and hooks are
around that can invalidate the window's end.

Why do you need to know the window-end position in a window-scroll
function?  Why cannot you access it in some other way?



reply via email to

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