Subject: bug#1810 closed by Chong Yidong <[email-masked]> (Re: 23.0.60; visual-line-mode moves to the wrong column)

From: [email-masked] (Emacs bug Tracking System)
Date: Sat, 10 Jan 2009 18:50:03 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1810: 23.0.60; visual-line-mode moves to the wrong column

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
1810: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1810
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 23.0.60; visual-line-mode moves to the wrong column
From: Chong Yidong <[email-masked]>
To: Juri Linkov <[email-masked]>
Cc: [email-masked]
Date: Sat, 10 Jan 2009 13:42:40 -0500

> When `line-move-visual' is non-nil, moving down from a control character
> moves to the wrong column.
>
> This behavior can be traced back to the function `posn-at-point' that
> returns the x-coordinate of the second character in the displayed
> control sequence "^@" instead of the first character where point is
> actually located.

I've checked in a fix.  Thanks.

Subject: 23.0.60; visual-line-mode moves to the wrong column
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Tue, 06 Jan 2009 19:45:07 +0200

When `line-move-visual' is non-nil, moving down from a control character
moves to the wrong column.

Test case:

1. insert to a new buffer the following text:

^@est.
Test2.
Test3.

where ^@ at the beginning of the buffer is a NULL control character.

2. Move to the beginning of the buffer (M-<).

3. Move down (C-n) - point jumps from the *first* column of the first line
to the *second* column of the second line.

This behavior can be traced back to the function `posn-at-point'
that returns the x-coordinate of the second character in the displayed
control sequence "^@" instead of the first character where point
is actually located.

-- 
Juri Linkov
http://www.jurta.org/emacs/