bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35404: posn-at-point ignores line numbers when display property is s


From: Евгений Курневский
Subject: bug#35404: posn-at-point ignores line numbers when display property is set
Date: Tue, 23 Apr 2019 21:36:44 +0000

Emacs version: 26.2
Steps to reproduce:
emacs -Q
Activate display-line-numbers-mode
Insert some word at the first line, like "aaa"
Execute (nth 2 (posn-at-point 2)), it will return (40 . 0)
Execute (put-text-property 2 3 'display "A")
Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0)

This breaks next-line/previous-line in cases display property is used. For example, highlight-indent-guides mode uses display property to draw indentation levels.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]