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: Thu, 25 Jun 2020 20:42:50 +0300 Message-ID: <83o8p7rqhx.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="74867"; 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 Thu Jun 25 19:46:12 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 1joVwx-000JMi-JE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 19:46:11 +0200 Original-Received: from localhost ([::1]:35436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joVww-00047j-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 13:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joVus-0001k5-Hi for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 13:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joVus-0007of-4h for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joVus-0005GZ-1V for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 13:44: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: Thu, 25 Jun 2020 17:44: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.159310699820171 (code B ref 42039); Thu, 25 Jun 2020 17:44:01 +0000 Original-Received: (at 42039) by debbugs.gnu.org; 25 Jun 2020 17:43:18 +0000 Original-Received: from localhost ([127.0.0.1]:41101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joVuA-0005FH-Gg for submit@debbugs.gnu.org; Thu, 25 Jun 2020 13:43:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joVu8-0005F3-5l for 42039@debbugs.gnu.org; Thu, 25 Jun 2020 13:43:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43049) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joVu2-0007cT-3P; Thu, 25 Jun 2020 13:43:10 -0400 Original-Received: from [176.228.60.248] (port=2137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joVu0-0005iU-RF; Thu, 25 Jun 2020 13:43:10 -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:182377 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 bug-report buffer doesn't use an overlay, it uses a display property string. Do you have an example with an overlay where this problem happens, or is it limited to display strings?