[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unexpected cursor movement
From: |
Richard M. Stallman |
Subject: |
Re: unexpected cursor movement |
Date: |
Thu, 25 Aug 2005 23:50:10 -0400 |
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.