Commit 1c6a5870 authored by Eli Zaretskii's avatar Eli Zaretskii

; Clarify docs of pos-visible-in-window-p some more

parent ecbb6aeb
......@@ -3174,12 +3174,14 @@ position that works well with point, and thus @var{position} is not used.
@defun pos-visible-in-window-p &optional position window partially
This function returns non-@code{nil} if @var{position} is within the
range of text currently visible on the screen in @var{window}. It
returns @code{nil} if @var{position} is scrolled vertically out of view.
Locations that are partially obscured are not considered visible unless
@var{partially} is non-@code{nil}. The argument @var{position} defaults
to the current position of point in @var{window}; @var{window}, to the
selected window. If @var{position} is @code{t}, that means to check the
first visible position of the last visible screen line in @var{window}.
returns @code{nil} if @var{position} is scrolled vertically out of
view. Locations that are partially obscured are not considered
visible unless @var{partially} is non-@code{nil}. The argument
@var{position} defaults to the current position of point in
@var{window}; @var{window} defaults to the selected window. If
@var{position} is @code{t}, that means to check either the first
visible position of the last screen line in @var{window}, or the
end-of-buffer position, whichever comes first.
This function considers only vertical scrolling. If @var{position} is
out of view only because @var{window} has been scrolled horizontally,
......
......@@ -1686,8 +1686,9 @@ Return nil if that position is scrolled vertically out of view. If a
character is only partially visible, nil is returned, unless the
optional argument PARTIALLY is non-nil. If POS is only out of view
because of horizontal scrolling, return non-nil. If POS is t, it
specifies the position of the first glyph displayed on the last visible
screen line in WINDOW. POS defaults to point in WINDOW; WINDOW defaults
specifies the position of either the first position displayed on the
last visible screen line in WINDOW, or the end-of-buffer position,
whichever comes first. POS defaults to point in WINDOW; WINDOW defaults
to the selected window.
If POS is visible, return t if PARTIALLY is nil; if PARTIALLY is non-nil,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment