2. In the *scratch* buffer, evaluate the next expressions.

    (let ((scroll-margin 1))
      (goto-line 2)
      (set-window-start (selected-window) (point)))

    As a consequence, the cursor is moved to the vertical center of
    the window.

The idea of scroll-margin is that point can't be displayed
that close to the edge.

    Recenter the window whenever point gets within this many lines
    of the top or bottom of the window.

It didn't work in some cases, and I fixed it.


_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to