Subject: bug#26332: 25.2; org-indent-mode with visual-line-mode breaks C-a and C-e

From: Eli Zaretskii <[email-masked]>
Date: Sat, 01 Apr 2017 20:14:13 +0300

> From: Thibault Polge <[email-masked]>
> Date: Sat, 01 Apr 2017 11:02:07 +0200
> 
>  1. Open the attached document, or create a new org-mode file with an
>     heading and a (preferably long) paragraph or text under it.
>  2. Enable visual-line-mode and org-indent-mode
>  3. Reduce Emacs frame width.
>  4. With text-scale-mode or (set-frame-parameter), seriously increase
>     the font size (if it can't display more than two or three words per
>     line, that's perfect).
>  5. Go to the last character of the huge paragraph.
>  6. Start playing with C-a and C-e.  The cursor will wander erratically
>     within the paragraph, often in the wrong direction.

Thanks.

I can reproduce this in Emacs 25.2, but not on the master branch, so I
think this problem was already solved on master.  Can you try a
snapshot of the master branch?