GNU bug report logs - #35404
posn-at-point ignores line numbers when display property is set

Previous Next

Package: emacs;

Reported by: Евгений Курневский <kurnevsky <at> gmail.com>

Date: Tue, 23 Apr 2019 21:38:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35404 in the body.
You can then email your comments to 35404 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35404; Package emacs. (Tue, 23 Apr 2019 21:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Евгений Курневский <kurnevsky <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 23 Apr 2019 21:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Евгений Курневский
 <kurnevsky <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: posn-at-point ignores line numbers when display property is set
Date: Tue, 23 Apr 2019 21:36:44 +0000
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35404; Package emacs. (Wed, 24 Apr 2019 12:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 35404 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Евгений Курневский
 <kurnevsky <at> gmail.com>
Cc: 35404 <at> debbugs.gnu.org
Subject: Re: bug#35404: posn-at-point ignores line numbers when display
 property is set
Date: Wed, 24 Apr 2019 15:28:21 +0300
> From: Евгений Курневский
> 	<kurnevsky <at> gmail.com>
> Date: Tue, 23 Apr 2019 21:36:44 +0000
> 
> 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)

Thanks, should be fixed now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35404; Package emacs. (Thu, 25 Apr 2019 09:48:02 GMT) Full text and rfc822 format available.

Message #11 received at 35404 <at> debbugs.gnu.org (full text, mbox):

From: Евгений Курневский
 <kurnevsky <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35404 <at> debbugs.gnu.org
Subject: Re: bug#35404: posn-at-point ignores line numbers when display
 property is set
Date: Thu, 25 Apr 2019 09:47:07 +0000
[Message part 1 (text/plain, inline)]
Thanks! Is it going to be backported to 26 branch?

On Wed, Apr 24, 2019 at 12:28 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Евгений Курневский
> >       <kurnevsky <at> gmail.com>
> > Date: Tue, 23 Apr 2019 21:36:44 +0000
> >
> > 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)
>
> Thanks, should be fixed now.
>


-- 
С уважением, Курневский Евгений.
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 25 Apr 2019 10:02:02 GMT) Full text and rfc822 format available.

Notification sent to Евгений Курневский <kurnevsky <at> gmail.com>:
bug acknowledged by developer. (Thu, 25 Apr 2019 10:02:02 GMT) Full text and rfc822 format available.

Message #16 received at 35404-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Евгений Курневский
 <kurnevsky <at> gmail.com>
Cc: 35404-done <at> debbugs.gnu.org
Subject: Re: bug#35404: posn-at-point ignores line numbers when display
 property is set
Date: Thu, 25 Apr 2019 13:01:24 +0300
> From: Евгений Курневский <kurnevsky <at> gmail.com>
> Date: Thu, 25 Apr 2019 09:47:07 +0000
> Cc: 35404 <at> debbugs.gnu.org
> 
> Thanks! Is it going to be backported to 26 branch?

I'm not sure, the change is in a tricky place, and the problem existed
for long enough to consider it rare.  On top of that, we didn't yet
decide whether there will be Emacs 26.3; if not, the emacs-26 branch
is of no practical importance.

I take it that you tested the change?  If so, I'm closing the bug
report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 23 May 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.