Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs move-end-of-line, [END], or C-e not moving to end of line?

Tags:

emacs

macros

I've noticed that C-e <END> or M-x move-end-of-line doesn't always move the cursor to the end of the line.

Specifically this happens lines wider than the current window, it appears to move to some arbitrary point midway along the line.

Does anyone know if this is expected and more importantly, how to switch it off and make move-end-of-line, really move to the END of the line?

(Note: this is also happening in regular non-macro use.)

Emacs version in this example is GNU Emacs 23.1.97.1 (i386-mingw-nt6.1.7601)

Update.

The cursor is moving to the char that is on the edge of the window, (the display then re-centers around the cursor.)

like image 811
ocodo Avatar asked Aug 17 '11 05:08

ocodo


1 Answers

Make sure visual-line-mode is off for the buffer.

like image 198
ocodo Avatar answered Sep 28 '22 06:09

ocodo