From 98f4a29ed64ec93f04324919c0789b10925aa6d4 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sun, 5 Jun 2005 17:19:55 +0000 Subject: [PATCH] Add comment to line-move re. sit-for. --- lisp/simple.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index ddd2b752a37..6d6c3806889 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3365,6 +3365,8 @@ Outline mode sets this." (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))) -- 2.39.5