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

* bug#35404: posn-at-point ignores line numbers when display property is set
  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   ` Евгений Курневский
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2019-04-24 12:28 UTC (permalink / raw)
  To: Евгений Курневский
  Cc: 35404

> From: Евгений Курневский
> 	<kurnevsky@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.





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

* 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
  0 siblings, 1 reply; 4+ messages in thread
From: Евгений Курневский @ 2019-04-25  9:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 35404

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

Thanks! Is it going to be backported to 26 branch?

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

> > From: Евгений Курневский
> >       <kurnevsky@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.
>


-- 
С уважением, Курневский Евгений.

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

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

* bug#35404: posn-at-point ignores line numbers when display property is set
  2019-04-25  9:47   ` Евгений Курневский
@ 2019-04-25 10:01     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2019-04-25 10:01 UTC (permalink / raw)
  To: Евгений Курневский
  Cc: 35404-done

> From: Евгений Курневский <kurnevsky@gmail.com>
> Date: Thu, 25 Apr 2019 09:47:07 +0000
> Cc: 35404@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.





^ 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.