From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <835zberq2h.fsf@gnu.org> References: <6afd1e11-7fa1-6efe-db6d-d768ae2a942f@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="114382"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42039@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 26 14:05:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jon6T-000TeU-NU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 14:05:09 +0200 Original-Received: from localhost ([::1]:50978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jon6S-0004Xg-Qa for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 08:05:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jon6M-0004XT-En for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jon6M-0007H0-6C for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jon6M-00083Q-0N for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jun 2020 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42039 X-GNU-PR-Package: emacs Original-Received: via spool by 42039-submit@debbugs.gnu.org id=B42039.159317309130940 (code B ref 42039); Fri, 26 Jun 2020 12:05:01 +0000 Original-Received: (at 42039) by debbugs.gnu.org; 26 Jun 2020 12:04:51 +0000 Original-Received: from localhost ([127.0.0.1]:41975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jon6B-00082y-F2 for submit@debbugs.gnu.org; Fri, 26 Jun 2020 08:04:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jon66-00082e-5W for 42039@debbugs.gnu.org; Fri, 26 Jun 2020 08:04:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37581) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jon60-00075H-Rd; Fri, 26 Jun 2020 08:04:40 -0400 Original-Received: from [176.228.60.248] (port=2126 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jon60-00048d-8P; Fri, 26 Jun 2020 08:04:40 -0400 In-Reply-To: <6afd1e11-7fa1-6efe-db6d-d768ae2a942f@yandex.ru> (message from Dmitry Gutov on Thu, 25 Jun 2020 16:29:21 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182405 Archived-At: > From: Dmitry Gutov > 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.