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: Fri, 26 Jun 2020 15:55:31 +0300 Message-ID: <065b7ced-90d5-cd19-dc96-770b7acc4ba9@yandex.ru> References: <6afd1e11-7fa1-6efe-db6d-d768ae2a942f@yandex.ru> <835zberq2h.fsf@gnu.org> 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="74796"; 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 Cc: 42039@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 26 14:56: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 1jontr-000JJp-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 14:56:11 +0200 Original-Received: from localhost ([::1]:54146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jontq-0001ct-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 08:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jonti-0001bq-RA for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jonti-0001Ca-IS for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jonti-0000ny-H5 for bug-gnu-emacs@gnu.org; Fri, 26 Jun 2020 08:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jun 2020 12:56:02 +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.15931761433068 (code B ref 42039); Fri, 26 Jun 2020 12:56:02 +0000 Original-Received: (at 42039) by debbugs.gnu.org; 26 Jun 2020 12:55:43 +0000 Original-Received: from localhost ([127.0.0.1]:41999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jontO-0000nP-Ta for submit@debbugs.gnu.org; Fri, 26 Jun 2020 08:55:43 -0400 Original-Received: from mail-ed1-f46.google.com ([209.85.208.46]:44334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jontM-0000nC-Ct for 42039@debbugs.gnu.org; Fri, 26 Jun 2020 08:55:41 -0400 Original-Received: by mail-ed1-f46.google.com with SMTP id s28so6809353edw.11 for <42039@debbugs.gnu.org>; Fri, 26 Jun 2020 05:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s4g+la1yaBabp7BXbfq7+WQpbPG6mncTV5TfNscleRM=; b=TyGODmR6uN9340SmAwWcbYKfmwvHcqHRWhKQ76MAXNCluloZf5tN9WQImKhrDnViMa xadaObEDH4BSIHtzR4DRnB5antF+Bd13ySM0+X8giWsIdCjUouYifbERcloyfhzO6kbG ux3YLw0moPSwbQ9r6vUZ2ruoYsCz927/JJlhWsptNqUnfn3hhW5Dqdyw3UdG6blJXVab Yj42wkRrYSsq/ZBMUI9uw8BQS9mPhSSm+UnAb1VR4WM9XUc4pTeC6DPiMLJIDMYHaknC biVywCHzexdbcURgkv+1gEvC7aZRPeyqW0XXiMv0XopRFZJVORhbcdayD7ZqL9sl5nQL 9oSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s4g+la1yaBabp7BXbfq7+WQpbPG6mncTV5TfNscleRM=; b=jLCike0NFqP6JgyFW9mOgAT5N2ECAnk3RPGeoFFbz2QBYWs50opj7fFPHhQCcVAVVc Q2lAjVfN1waeXUeoCmc/5SytMRKGZf1ovP1oPC1q7fZAAY0dZeLx0AYpQhbz7lPsnlF/ uf6P8BSZRhpI9Nv6O7FysSLCb4KCTVzB4uZGWwYOLnuAN4fySFLVKjfyOhNpEWFciReo Bzf+mPTWhOFOEa8nPJ8W8rxrSwvQERC5nTpACMkJoLGGnHeN6MsViShCM6J5Df9GjPIz YDMI9Qb6hcGmbCUwWzPUWRCrbEyRbcFwCaqV16A+H92iBSp0LZFqzt6sdfymYQ4U1GP+ 44dw== X-Gm-Message-State: AOAM5302AsEQyMsyBtt3JWd8Gel+EOX1zOsEFp4xgixJmmOmodUy39lD x5wwDAh4n/reJ/v7mdWaVd1wa+SD X-Google-Smtp-Source: ABdhPJxC707LAso2uB0Huf/XtTMoSwrPHrEKndfi8J5vW+8rUPUmGHWXh1fQVoVc8QmlnekjHPR1og== X-Received: by 2002:a50:b0a1:: with SMTP id j30mr3165243edd.387.1593176133885; Fri, 26 Jun 2020 05:55:33 -0700 (PDT) Original-Received: from [192.168.0.134] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id ce15sm4872926ejc.86.2020.06.26.05.55.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jun 2020 05:55:33 -0700 (PDT) In-Reply-To: <835zberq2h.fsf@gnu.org> Content-Language: en-US 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:182406 Archived-At: On 26.06.2020 15:04, Eli Zaretskii wrote: >> 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. Thank you. It's working fine now in the cases I really care about (so we can close the report), but here's one you seem to have missed: 1. M-x report-emacs-bug. 2. Toggle display-line-numbers-mode on. 3. Move point to the second display string ("If Emacs crashed..."). 4. Evaluate (posn-x-y (posn-at-point)).