|
| From: | martin rudalics |
| Subject: | bug#926: 23.0.60; move-end-of-line goes to previous line in outline-mode |
| Date: | Thu, 11 Sep 2008 10:54:32 +0200 |
| User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
> 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.
This seems related to a recent change in `vertical-motion': If you move
`point' to any place on the "* 2. section..." line but the ellipsis and
do (vertical-motion 1) `point' goes to the end of the buffer. When
`point' is right on the ellipsis `point' moves to the beginning of the
line.
martin
| [Prev in Thread] | Current Thread | [Next in Thread] |