# HG changeset patch # User Kim F. Storm # Date 1117991995 0 # Node ID e7db86688ce63be458457254914b5efc0ccf9c0a # Parent 55298152ef7d5c1d0e071b089b5e849c8df4d5d8 Add comment to line-move re. sit-for. diff -r 55298152ef7d -r e7db86688ce6 lisp/simple.el --- a/lisp/simple.el Sun Jun 05 17:09:55 2005 +0000 +++ b/lisp/simple.el Sun Jun 05 17:19:55 2005 +0000 @@ -3365,6 +3365,8 @@ (set-window-vscroll nil 0) (when (line-move-1 arg noerror to-end) (when (not forward) + ;; Update display before calling pos-visible-in-window-p, + ;; because it depends on window-start being up-to-date. (sit-for 0) (if (and (setq part (nth 2 (pos-visible-in-window-p (line-beginning-position) nil t)))