unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 42039@debbugs.gnu.org
Subject: bug#42039: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with display-line-numbers-mode
Date: Fri, 26 Jun 2020 15:04:22 +0300	[thread overview]
Message-ID: <835zberq2h.fsf@gnu.org> (raw)
In-Reply-To: <6afd1e11-7fa1-6efe-db6d-d768ae2a942f@yandex.ru> (message from Dmitry Gutov on Thu, 25 Jun 2020 16:29:21 +0300)

> From: Dmitry Gutov <dgutov@yandex.ru>
> 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

Your wish has been granted: this should now be fixed on the emacs-27
branch.





  parent reply	other threads:[~2020-06-26 12:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 13:29 bug#42039: 27.0.91; (posn-x-y (posn-at-point)) inconsistent with display-line-numbers-mode Dmitry Gutov
2020-06-25 14:18 ` Dmitry Gutov
2020-06-25 17:42 ` Eli Zaretskii
2020-06-25 18:35   ` Dmitry Gutov
2020-06-25 19:13     ` Eli Zaretskii
2020-06-26 12:04 ` Eli Zaretskii [this message]
2020-06-26 12:55   ` Dmitry Gutov
2020-06-26 13:37     ` Eli Zaretskii
2020-06-26 16:00       ` Dmitry Gutov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=835zberq2h.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=42039@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).