From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov 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 16:29:21 +0300 Message-ID: <6afd1e11-7fa1-6efe-db6d-d768ae2a942f@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105033"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 To: 42039@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 25 15:30:30 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 1joRxV-000RFB-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 15:30:29 +0200 Original-Received: from localhost ([::1]:36906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRxU-0006y1-Ob for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 09:30:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joRx5-0006aZ-Hf for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 09:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joRx5-00058U-7S for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 09:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joRx5-0004jR-1V for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jun 2020 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42039 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159309177018110 (code B ref -1); Thu, 25 Jun 2020 13:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2020 13:29:30 +0000 Original-Received: from localhost ([127.0.0.1]:39938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joRwY-0004i2-Bk for submit@debbugs.gnu.org; Thu, 25 Jun 2020 09:29:30 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joRwW-0004ht-2Y for submit@debbugs.gnu.org; Thu, 25 Jun 2020 09:29:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joRwV-0005p0-Rb for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 09:29:27 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:34293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joRwT-0004p6-Rz for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 09:29:27 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id a8so2989287edy.1 for ; Thu, 25 Jun 2020 06:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:subject:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ZA+WXGSgnvWgIBSfxNsmO3sSxn1Z6t3XbE5ffqKY3x8=; b=HQ9rNuN/Ei4sH0GJRZgeqUeBX8/ARowxFdGbdZDMYaHRLgDm3HEtTtst7pH5YZPOuw 0Fay8bm/5hnI0fUllGni3bWHG5JW4l8nksaNsH93N5LrJq5k1A5cZg7DyA3rPIBQCat7 pNn/x7EiiwpzFlIOwLmZRb/VurbX3qiHCdp8ECwY7R7xlonsFX0AfKLILH/Z0kKC81le eD/nT6DVRvpaDuclXLlP4paRGFBCx3MQ5poNzSetxg9TZ5apaQ4DatGS4ir7PsbVuWY1 r9rIr+zGexiqRT0jirXbglrODqSxvGVWmCDmM4EB6TbbkIFT1UQTnQ6ACXLCQ6PCs39a mdRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:subject:from:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=ZA+WXGSgnvWgIBSfxNsmO3sSxn1Z6t3XbE5ffqKY3x8=; b=cPnkUA4apISttay3vZ7Ec0CBaSC3kpHKpWpD2o/I+Yvs8fGxj5Z5Ce0fx2WWRgetTE jxyY2ufle4NQm89Z1TxZStfT/gmsFrCmykScLETVj9yYDxniXpeSKm0Cen4SYCDZzo5N cksW5kxfVItNRqdax6cbmlp4qgOUB0bLRHnLtNnn4efYskedOibj9I7gw/VOhAKYeFET uR1SLINB3ZoXZOulH2HB+UMQibETmEMk12IUFbdLi9TRcraJTqsCC5QSpvF9V7er8/Fx fOBB9jQPDyyASEan3UEByyLP/g4c56I/IaYHD2iDlL4oz4vYWxwGMX53U+bTpqFIcUkQ P4ww== X-Gm-Message-State: AOAM533HJ1inp0P7d3jp/5QcKXXuNSQMRfsOWArtMRz0my/HD/5td1HK vkaZiSsJZHxfcPX03Y3WapAKmWYY X-Google-Smtp-Source: ABdhPJyQZdC9V92izMfQt64W8kNj6X31xBSInHs4w7KDpZQAxQzYlJDdHVXSeHe/ev2DmfIzQfKfCQ== X-Received: by 2002:a05:6402:c83:: with SMTP id cm3mr12752527edb.307.1593091764042; Thu, 25 Jun 2020 06:29:24 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id a62sm19168446ede.45.2020.06.25.06.29.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jun 2020 06:29:23 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=raaahh@gmail.com; helo=mail-ed1-x536.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:182367 Archived-At: 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