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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#42039: closed (27.0.91; (posn-x-y (posn-at-point))
 inconsistent with display-line-numbers-mode)
Date: Fri, 26 Jun 2020 16:01:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 26 Jun 2020 19:00:06 +0300
with message-id <e5861ced-a131-a503-4794-b8f92c491fe4 <at> yandex.ru>
and subject line Re: bug#42039: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with display-line-numbers-mode
has caused the debbugs.gnu.org bug report #42039,
regarding 27.0.91; (posn-x-y (posn-at-point)) inconsistent with display-line-numbers-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
42039: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42039
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with
 display-line-numbers-mode
Date: Thu, 25 Jun 2020 16:29:21 +0300
1. Enable display-line-numbers-mode.
2. Move point to the beginning of some line.
3. Evaluate (posn-x-y (posn-at-point))

=> The value in CAR will be > 0 (to account for the columns taken by 
d-l-n-m).

4. Do the same thing on a line that belongs to an overlay. For example,
the overlay in the bug reporting buffer (move point to the line with
"This bug report...").
5. The return value will be like (0 . 180).

The expected behavior: the column should still account for the offset by
the d-l-n-m.

I'd really like to see this fixed in Emacs, it makes positioning of
popups unpredictable when display-line-numbers-mode is enabled: 
https://github.com/company-mode/company-quickhelp/issues/106


[Message part 3 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 42039-done <at> debbugs.gnu.org
Subject: Re: bug#42039: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with
 display-line-numbers-mode
Date: Fri, 26 Jun 2020 19:00:06 +0300
On 26.06.2020 16:37, Eli Zaretskii wrote:
> It worked in a previous version of the fix, but then I decided to be
> over-cautious...
> 
> Fixed.

Thanks!

Looking good now.


This bug report was last modified 5 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.