all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35404: posn-at-point ignores line numbers when display property is set
@ 2019-04-23 21:36 Евгений Курневский
  2019-04-24 12:28 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Евгений Курневский @ 2019-04-23 21:36 UTC (permalink / raw)
  To: 35404

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 565 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-25 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-23 21:36 bug#35404: posn-at-point ignores line numbers when display property is set Евгений Курневский
2019-04-24 12:28 ` Eli Zaretskii
2019-04-25  9:47   ` Евгений Курневский
2019-04-25 10:01     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.