Emacs Cl commands only the screens of recent users and does not cyclically move the top and bottom moves

The repeatedly executed emacs command C-lon my machine does not cycle through three positions, but only the first position (center of the screen).

From the GNU Emacs Documentation :

Cl (recenter-top-bottom)

Scroll the selected window so that the current line is the most central line text; on subsequent consecutive calls, make the current line the top line, bottom line, etc. in cyclic order. maybe re-display the screen (recenter-top-bottom).

Typing Cl twice in a row (Cl Cl) scrolls the window so that the dot is on the top line of the screen. Entering the third Cl scrolls the window so that the dot is on the bottom line of the screen. Each subsequent Cl cycle through these three positions.

When I run C-l, it only scrolls the window, so the current line is in the center line of the text. But in subsequent calls, the command simply holds the window at one point. I used emacs on other machines where the bike works, and the second and third iterations scroll the window to the top and bottom lines, so I know that something is wrong with my version.

How can i fix this?

(Please let me know in the comments which files or information you need to see in order to diagnose the problem.)

+3
source
3

@legoscia, Emacs 23.

, Emacs, misc-cmds.el. recenter-top-bottom* , , .

+3

init.el

(setq recenter-positions '(middle top bottom))

: https://www.gnu.org/software/emacs/manual/html_node/emacs/Recentering.html

+1

Emacs 23.1. C-l , : , .

"Emacs 22 Antinews" Emacs 23:

, , 2.0.3 Emacs.

...

C-lnow runs recenter instead of recenter-top-bottom. This always sets the current line in the center of the window, instead of cyclically moving around the center, top and bottom of the window in successive calls. This allows you to enter C-l C-l C-l C-lto be absolutely sure that you have moved the line.

+1
source

All Articles