From: "Евгений Курневский" <kurnevsky@gmail.com>
To: 35404@debbugs.gnu.org
Subject: bug#35404: posn-at-point ignores line numbers when display property is set
Date: Tue, 23 Apr 2019 21:36:44 +0000 [thread overview]
Message-ID: <CAOEHfoimHKEEMyKFSc_pteQxTkygROW+TSOFbbi-wYZ9m38Y_w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2019-04-23 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 21:36 Евгений Курневский [this message]
2019-04-24 12:28 ` bug#35404: posn-at-point ignores line numbers when display property is set Eli Zaretskii
2019-04-25 9:47 ` Евгений Курневский
2019-04-25 10:01 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOEHfoimHKEEMyKFSc_pteQxTkygROW+TSOFbbi-wYZ9m38Y_w@mail.gmail.com \
--to=kurnevsky@gmail.com \
--cc=35404@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.