aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-07-18 22:10:51 +0000
committerRichard M. Stallman1995-07-18 22:10:51 +0000
commitea951766c562af6f2ab08016ab83bd18ffbc6168 (patch)
tree7c2aacbaff5fb222a5302b30b602ee7ea009e658
parent878c1d73d048d949dbace5688929d2d7701706cd (diff)
downloademacs-ea951766c562af6f2ab08016ab83bd18ffbc6168.tar.gz
emacs-ea951766c562af6f2ab08016ab83bd18ffbc6168.zip
Explain how redisplay updates window-start.
-rw-r--r--lispref/windows.texi10
1 files changed, 8 insertions, 2 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi
index 27925e9be8c..fe6db12f2b4 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -1003,8 +1003,14 @@ When you create a window, or display a different buffer in it, the
1003display-start position is set to a display-start position recently used 1003display-start position is set to a display-start position recently used
1004for the same buffer, or 1 if the buffer doesn't have any. 1004for the same buffer, or 1 if the buffer doesn't have any.
1005 1005
1006For a realistic example, see the description of @code{count-lines} in 1006Redisplay updates the window-start position (if you have not specified
1007@ref{Text Lines}. 1007it explicitly since the previous redisplay) so that point appears on the
1008screen. Nothing except redisplay automatically changes the window-start
1009position; if you move point, do not expect the window-start position to
1010change in response until after the next redisplay.
1011
1012For a realistic example of using @code{window-start}, see the
1013description of @code{count-lines} in @ref{Text Lines}.
1008@end defun 1014@end defun
1009 1015
1010@defun window-end &optional window 1016@defun window-end &optional window