Subject: bug#10902: 24.0.93; Point displayed after end of buffer with scroll-margin

From: Johan Bockgård <[email-masked]>
Date: Mon, 27 Feb 2012 20:18:09 +0100

emacs -Q

Eval

    (progn
      (pop-to-buffer (get-buffer-create "*foo*"))
      (dotimes (n 5) (insert "x\n"))
      (goto-char (point-min))
      (setq scroll-margin 100)
      (set-window-text-height nil (+ 5 2)))

Press `M->'

  => Point is displayed one line below the end of the buffer.