Subject: 23.0.60; move-end-of-line goes to previous line in outline-mode

From: Ari Roponen <[email-masked]>
Date: Mon, 08 Sep 2008 08:55:25 +0300

Hi,

command `move-end-of-line' doesn't work correctly in outline-mode.
Steps to reproduce the bug:

1. emacs -Q
2. Evaluate the following code with C-x C-e:

  (progn
    (pop-to-buffer "*tmp*")
    (outline-mode)
    (insert "* 1. section\n"
  	  "  body text\n"
  	  "* 2. section\n"
  	  "  more text\n")
    (hide-subtree))
  
3. Press C-a (move-beginning-of-line) to put the cursor at the
   beginning of line "* 2. section...".

4. Here comes the bug. Pressing C-e (move-end-of-line) moves the
   cursor to the end of previous line ("body text") instead of current
   line.

-- 
Ari Roponen