# HG changeset patch # User Miles Bader # Date 976330715 0 # Node ID 7d0d54bf89f4cddb43329ea52144694fa43b4c7a # Parent 779f5314f5fa3f8ee06579f2076d492395c154a8 (Window Start): Update documentation for `pos-visible-in-window-p'. diff -r 779f5314f5fa -r 7d0d54bf89f4 lispref/windows.texi --- a/lispref/windows.texi Sat Dec 09 02:53:58 2000 +0000 +++ b/lispref/windows.texi Sat Dec 09 02:58:35 2000 +0000 @@ -1211,14 +1211,16 @@ position that works well with point, and thus @var{position} is not used. @end defun -@defun pos-visible-in-window-p &optional position window fully +@defun pos-visible-in-window-p &optional position window partially This function returns @code{t} if @var{position} is within the range of -text currently visible on the screen in @var{window}. If @var{fully} is -non-@code{nil}, then locations that are partially obscured are not -considered visible. It returns @code{nil} if @var{position} is scrolled -vertically out of view. The argument @var{position} defaults to the -current position of point; @var{window}, to the selected window. Here -is an example: +text currently visible on the screen in @var{window}. It returns +@code{nil} if @var{position} is scrolled vertically or horizontally 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. + +Here is an example: @example @group @@ -1227,11 +1229,6 @@ (recenter 0)) @end group @end example - -The @code{pos-visible-in-window-p} function considers only vertical -scrolling. If @var{position} is out of view only because @var{window} -has been scrolled horizontally, @code{pos-visible-in-window-p} returns -@code{t} anyway. @xref{Horizontal Scrolling}. @end defun @node Textual Scrolling