Mercurial > emacs
comparison lispref/windows.texi @ 33992:74b82b7ee6f8
pos-visible-in-window-p change
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 29 Nov 2000 12:53:06 +0000 |
parents | a39402e633cd |
children | a50ccd431a27 |
comparison
equal
deleted
inserted
replaced
33991:b741aa7a2d46 | 33992:74b82b7ee6f8 |
---|---|
1200 If @var{noforce} is non-@code{nil}, and @var{position} would place point | 1200 If @var{noforce} is non-@code{nil}, and @var{position} would place point |
1201 off screen at the next redisplay, then redisplay computes a new window-start | 1201 off screen at the next redisplay, then redisplay computes a new window-start |
1202 position that works well with point, and thus @var{position} is not used. | 1202 position that works well with point, and thus @var{position} is not used. |
1203 @end defun | 1203 @end defun |
1204 | 1204 |
1205 @defun pos-visible-in-window-p &optional position window | 1205 @defun pos-visible-in-window-p &optional position window fully |
1206 This function returns @code{t} if @var{position} is within the range | 1206 This function returns @code{t} if @var{position} is within the range of |
1207 of text currently visible on the screen in @var{window}. It returns | 1207 text currently visible on the screen in @var{window}. If @var{fully} is |
1208 @code{nil} if @var{position} is scrolled vertically out of view. The | 1208 non-@code{nil}, then locations that are partially obscured are not |
1209 argument @var{position} defaults to the current position of point; | 1209 considered visible. It returns @code{nil} if @var{position} is scrolled |
1210 @var{window}, to the selected window. Here is an example: | 1210 vertically out of view. The argument @var{position} defaults to the |
1211 current position of point; @var{window}, to the selected window. Here | |
1212 is an example: | |
1211 | 1213 |
1212 @example | 1214 @example |
1213 @group | 1215 @group |
1214 (or (pos-visible-in-window-p | 1216 (or (pos-visible-in-window-p |
1215 (point) (selected-window)) | 1217 (point) (selected-window)) |