GNU bug report logs - #42039
27.0.91; (posn-x-y (posn-at-point)) inconsistent with display-line-numbers-mode

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Thu, 25 Jun 2020 13:30:02 UTC

Severity: normal

Found in version 27.0.91

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 42039 <at> debbugs.gnu.org
Subject: Re: bug#42039: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with
 display-line-numbers-mode
Date: Thu, 25 Jun 2020 22:13:42 +0300
> Cc: 42039 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Thu, 25 Jun 2020 21:35:59 +0300
> 
> 2. Put a display string on it that (important!) ends with a newline:
> 
> (overlay-put o 'display "abc\ndef\n")
> 
> 3. Eval
> 
> (car (posn-x-y (posn-at-point (overlay-start o))))
> 
> It will evaluate to 0 even if display-line-numbers-mode is enabled.

So this _is_ triggered only by display strings.  Thanks.




This bug report was last modified 4 years and 363 days ago.

Previous Next


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