GNU bug report logs -
#23570
25.1.50; Cursor motion error with visual-line-mode
Previous Next
Reported by: Chong Yidong <cyd <at> gnu.org>
Date: Wed, 18 May 2016 11:21:02 UTC
Severity: normal
Merged with 24336
Found in versions 25.1, 25.1.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
> I cannot say I can reproduce this on my machine. I see something
> similar in Emacs 24.5, but not with the current master or release
> branch.
>
> I think what you see could be explained by changing the frame size by
> non-integer number of characters (i.e. by a number of pixels that is
> smaller than the canonical character width). But since I cannot come
> up with a reproducible recipe, I cannot debug this.
The recipe does not describe changing the frame size by non-integer
number of characters. I'm changing the frame (hence window) size by
dragging the frame border; the width changes by one character at a time.
To remove all ambiguity, here is another recipe using elisp:
1. emacs -Q
2. Insert the following:
(defun foo ()
(interactive)
(save-excursion
(dotimes (x 7)
(insert "123456789 "))
(insert "12 ABCDEFGHIJK MOPQ"))
(visual-line-mode)
(set-frame-parameter nil 'width 85))
3. M-x eval-buffer RET
4. M-x foo RET
5. C-e => cursor goes to the wrong place.
This bug report was last modified 8 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.