emacs-devel
[Top][All Lists]
Advanced

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

Re: centering_position in redisplay_window?


From: Po Lu
Subject: Re: centering_position in redisplay_window?
Date: Wed, 01 Dec 2021 17:26:18 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> It is a distance in pixels from point to the position of window-start
> that would cause point to be displayed in the middle of the window.
>
> IOW, if window-start is set to the position whose Y coordinate is
> centering_position pixels above or below point, the window will show
> point at its center.  (Whether it's above or below depends on where
> point is wrt the current window display.)
>
> Note that "centering" is not necessarily literally the middle of the
> window it could be elsewhere subject to scroll-aggressively and
> scroll-conservatively.

Thanks for the explanation, I think I understand now.


reply via email to

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