GNU bug report logs -
#64988
30.0.50; move-to-column can move across lines if there is a text with display property
Previous Next
Reported by: Herman, Géza <geza.herman <at> gmail.com>
Date: Tue, 1 Aug 2023 10:55:02 UTC
Severity: normal
Tags: notabug, wontfix
Merged with 66942
Found in version 30.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
If there is a text with display property in a buffer, then
move-to-column can move across lines.
Repro:
* emacs -Q
* in the scratch buffer, move the cursor to the top, and put an empty
line at the beginning of the buffer
* execute 'M-: (put-text-property 1 2 'display "line\n")' (note: it's
likely that the "\n" causes the problem)
* notice that the empty line becomes "line"
* while the cursor still on the first line, execute 'M-: (move-to-column
20)'
The last command will move the cursor to the next line at column 16,
instead of staying at the first line.
Note: I noticed this problem while using this package:
https://github.com/jdtsmith/indent-bars.
The problem doesn't happen with emacs 28, this is the commit that
introduced the issue:
4243747b1b8c3b7e3463822804b32e83febe2878 Fix 'current-column' in the
presence of display strings
This bug report was last modified 1 year and 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.