From unknown Sun Jun 15 01:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35404: posn-at-point ignores line numbers when display property is set Resent-From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Apr 2019 21:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 35404@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155605543025793 (code B ref -1); Tue, 23 Apr 2019 21:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2019 21:37:10 +0000 Received: from localhost ([127.0.0.1]:54505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ36E-0006hx-2E for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ36B-0006hi-Km for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:59587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJ366-0004wh-DM for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJ365-0002aU-Cw for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:37:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FROM_EXCESS_BASE64,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJ363-0004rY-Gm for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:37:01 -0400 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:40438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJ361-0004nl-Fu for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:36:59 -0400 Received: by mail-oi1-x231.google.com with SMTP id k10so2067111oik.7 for ; Tue, 23 Apr 2019 14:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LvRB806D7K/lrJbwibigwl7ho4g/dcdwoJDPMszhh/Q=; b=M4b3e6SBMieACszHvFIU32yHxgkL7VEKc3q+xzv0JL70Z3sytbNDq32hQ98iXXVVru hKfptAyCGCsWeuUS9pH9xQflY9Y0EfDQrjuow2K6Dcbrm5Yh+JgX0b8cCXXa6hWmwk+N kuQnZoLtU0iNRGZv0lC2B2xhxp7gEwQSRXto/ai1CwKowBSKbFFXKdW1NzWFeUE3qVhv JJXPQGopGa/wj6lsSThzv5DOWbLrTk/cCTGi2J3+6hhpgS2wm7Pw2iO4HWFCAT8YVX0L k2sxe4DTEcamQ4RAXBI0lEwBy37D+iMSHR7SLuY2mGCy6THVTqID524UXQbocR/co3Kn lIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LvRB806D7K/lrJbwibigwl7ho4g/dcdwoJDPMszhh/Q=; b=f9g4PijCcqsgib89THTf01hTbEsrZ10Yiw2lSwRUZFNvDkve6Dy4A7tQH/neBVognA ycVULmcIiLwaCFWknwYE9AFeJXC1IfwW4btFEoPagAMAZ/hsMZEalOUXA3AEOxq3wOer bGcDdH9Dig93/z57NK7j/aaxeRk21fZWQueyZ6hXNqvvhJapHGsASpwuiQAcWdDDHkQ3 FSWUA6bWqtdTBr/i4VeixA5+vZJGnHMYeIioYyPYLkPgNhLkLKotl6YNVZF0jHT1qqHX AfJwtIquuTkkj8r9RTeFRSO0BY3r2YpjeIvjOHh0ZakjUqjt8z+a6vZ8gnQqs8/PeS0P 4MQw== X-Gm-Message-State: APjAAAX2PUk7w3LteVf+yeC/2ASVWeCZxskIfv1C/ErJ05tMnOxV00AY LhC0OwoDF+1RNP8l6fGJLwGRhYsr0p8fksKM1wobubqA X-Google-Smtp-Source: APXvYqyrRLSYiy64PF77Fas0/m2IGnaIjm2BjyH3yoaD0O6hBAhWgITEryh5yPjjjVHYQJD7Jw6IJBHKONPecnsUO94= X-Received: by 2002:aca:357:: with SMTP id 84mr3324091oid.79.1556055416002; Tue, 23 Apr 2019 14:36:56 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Tue, 23 Apr 2019 21:36:44 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000525bbe0587396258" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.2 (--) --000000000000525bbe0587396258 Content-Type: text/plain; charset="UTF-8" Emacs version: 26.2 Steps to reproduce: emacs -Q Activate display-line-numbers-mode Insert some word at the first line, like "aaa" Execute (nth 2 (posn-at-point 2)), it will return (40 . 0) Execute (put-text-property 2 3 'display "A") Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0) This breaks next-line/previous-line in cases display property is used. For example, highlight-indent-guides mode uses display property to draw indentation levels. --000000000000525bbe0587396258 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs version: 26.2
Steps to reproduce:
emacs -Q
= Activate display-line-numbers-mode
Insert some word at the first line, l= ike "aaa"
Execute (nth 2 (posn-at-point 2)), it will return (4= 0 . 0)
Execute (put-text-property 2 3 'display "A")
Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0)

This breaks next-line/previous-line in cases display proper= ty is used. For example, highlight-indent-guides mode uses display property= to draw indentation levels.
--000000000000525bbe0587396258-- From unknown Sun Jun 15 01:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35404: posn-at-point ignores line numbers when display property is set Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2019 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Cc: 35404@debbugs.gnu.org Received: via spool by 35404-submit@debbugs.gnu.org id=B35404.15561089162592 (code B ref 35404); Wed, 24 Apr 2019 12:29:02 +0000 Received: (at 35404) by debbugs.gnu.org; 24 Apr 2019 12:28:36 +0000 Received: from localhost ([127.0.0.1]:55257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJH0t-0000fk-PV for submit@debbugs.gnu.org; Wed, 24 Apr 2019 08:28:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJH0r-0000fW-62 for 35404@debbugs.gnu.org; Wed, 24 Apr 2019 08:28:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJH0k-00033A-Tw; Wed, 24 Apr 2019 08:28:28 -0400 Received: from [176.228.60.248] (port=3140 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJH0k-00046e-2S; Wed, 24 Apr 2019 08:28:26 -0400 Date: Wed, 24 Apr 2019 15:28:21 +0300 Message-Id: <83ftq737ve.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (kurnevsky@gmail.com) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Евгений Курневский > > Date: Tue, 23 Apr 2019 21:36:44 +0000 > > emacs -Q > Activate display-line-numbers-mode > Insert some word at the first line, like "aaa" > Execute (nth 2 (posn-at-point 2)), it will return (40 . 0) > Execute (put-text-property 2 3 'display "A") > Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0) Thanks, should be fixed now. From unknown Sun Jun 15 01:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35404: posn-at-point ignores line numbers when display property is set Resent-From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Apr 2019 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 35404@debbugs.gnu.org Received: via spool by 35404-submit@debbugs.gnu.org id=B35404.155618564715498 (code B ref 35404); Thu, 25 Apr 2019 09:48:02 +0000 Received: (at 35404) by debbugs.gnu.org; 25 Apr 2019 09:47:27 +0000 Received: from localhost ([127.0.0.1]:57478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJayV-00041u-Bz for submit@debbugs.gnu.org; Thu, 25 Apr 2019 05:47:27 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:39132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJayU-00041h-0X for 35404@debbugs.gnu.org; Thu, 25 Apr 2019 05:47:26 -0400 Received: by mail-oi1-f178.google.com with SMTP id n187so16659574oih.6 for <35404@debbugs.gnu.org>; Thu, 25 Apr 2019 02:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YLbNbOpH4ZxfXhrH5OTti5oPr84eOGtoJCE2BglKF0A=; b=LGPaWdItpiS2VoWEDNfNgvB8I6OBUqQi9jG7ppNh+23dAeNaLVMzjsnB/I7+l+D9YT 9Rs6Lhet6zDWGDgS5LPeJNTLHZ9CEEH6gwuKOCetucS6OVfpBwbm05lwGllKajoFgWIS MX0C5K7YcUqTXp2w8P3LPCBSuX07fxw/drdAkRRzDb7KqjUsYrwnKNdX68Qq7bQ/L/5h CYlUdHMYoxbH7tr49mxJ24WTnkz9RxSVj4HrGOixxvEIWtx/pVr7rQ8OgWakqzICoRIS /KkhnA8ngVxzFIQSq/YT4fcxspk+iWWTytYzOtjIHnaFD/IGesVcN7h4kcVGkQApIn5g fdpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YLbNbOpH4ZxfXhrH5OTti5oPr84eOGtoJCE2BglKF0A=; b=CFmFHApanb18DsbC7Q8SyDQXzND53Q1R+91JqR+5SRd0w4SqG9UmmqT2x+KJcMSJX8 cX8a1tFsWAzwS8mgtp+zW8LJ9thzdha2z2ECt+fgtBdCuWoUk8OcCa8ew7KCZyfCMvyq 48hiJYZxa2kt3+qGSFvMO9rUvUnj9s+IiXVqyLh72ffhPMcoaGP7AnUiSvU7lXa51Dnh OKptPmx6bfEz2TSpwd4922Yh1LQhkD4vSEJ18+4xTKIhoXAPS+BP2ePkuxyvnDZIpoUa tYCfCTL4cOgRxvzKSk/37dWP7KLXJURrfhUNF8/G9bKYj68jZEFJ5cfrEsFMdJ1urTKs Z24A== X-Gm-Message-State: APjAAAXClWVMvHBaH3iV7DAfzvpYei1pyl3oorhRmOcsCiywbtGphcj5 ESJywIpp1aTZ9kWoeLY3xIN8+m0DVKB0VPf9q/5Hig1S X-Google-Smtp-Source: APXvYqw3uo+GZpMde/T5d8YZnj+ctHfh2bf9PDnkiYwiKqt2lDQvq+DcoCiuFVtL3Fk9OiPcrk1KVz/m5VoMiVSsnkA= X-Received: by 2002:aca:3cc5:: with SMTP id j188mr2744657oia.88.1556185639582; Thu, 25 Apr 2019 02:47:19 -0700 (PDT) MIME-Version: 1.0 References: <83ftq737ve.fsf@gnu.org> In-Reply-To: <83ftq737ve.fsf@gnu.org> From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Thu, 25 Apr 2019 09:47:07 +0000 Message-ID: Content-Type: multipart/alternative; boundary="0000000000004083b8058757b406" X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) --0000000000004083b8058757b406 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! Is it going to be backported to 26 branch? On Wed, Apr 24, 2019 at 12:28 PM Eli Zaretskii wrote: > > From: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9A=D1=83=D1=80=D0= =BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 > > > > Date: Tue, 23 Apr 2019 21:36:44 +0000 > > > > emacs -Q > > Activate display-line-numbers-mode > > Insert some word at the first line, like "aaa" > > Execute (nth 2 (posn-at-point 2)), it will return (40 . 0) > > Execute (put-text-property 2 3 'display "A") > > Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0) > > Thanks, should be fixed now. > --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =D0=9A=D1=83= =D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 =D0=95=D0=B2=D0=B3=D0=B5= =D0=BD=D0=B8=D0=B9. --0000000000004083b8058757b406 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks! Is it going to be backported to 26 branch?

On W= ed, Apr 24, 2019 at 12:28 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0= =9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9
>=C2=A0 =C2=A0 =C2=A0 =C2=A0<kurnevsky@gmail.com>
> Date: Tue, 23 Apr 2019 21:36:44 +0000
>
> emacs -Q
> Activate display-line-numbers-mode
> Insert some word at the first line, like "aaa"
> Execute (nth 2 (posn-at-point 2)), it will return (40 . 0)
> Execute (put-text-property 2 3 'display "A")
> Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0)

Thanks, should be fixed now.


--
=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0= =BC, =D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 =D0=95=D0= =B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9.
--0000000000004083b8058757b406-- From unknown Sun Jun 15 01:08:28 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Subject: bug#35404: closed (Re: bug#35404: posn-at-point ignores line numbers when display property is set) Message-ID: References: <83pnpaz9mz.fsf@gnu.org> X-Gnu-PR-Message: they-closed 35404 X-Gnu-PR-Package: emacs Reply-To: 35404@debbugs.gnu.org Date: Thu, 25 Apr 2019 10:02:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1556186522-16914-1" This is a multi-part message in MIME format... ------------=_1556186522-16914-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #35404: posn-at-point ignores line numbers when display property is set which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 35404@debbugs.gnu.org. --=20 35404: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35404 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1556186522-16914-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 35404-done) by debbugs.gnu.org; 25 Apr 2019 10:01:56 +0000 Received: from localhost ([127.0.0.1]:57513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbCW-0004OX-CS for submit@debbugs.gnu.org; Thu, 25 Apr 2019 06:01:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbCU-0004OK-Db for 35404-done@debbugs.gnu.org; Thu, 25 Apr 2019 06:01:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJbCN-0006A7-C3; Thu, 25 Apr 2019 06:01:49 -0400 Received: from [176.228.60.248] (port=3477 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJbCL-0001Zz-CJ; Thu, 25 Apr 2019 06:01:46 -0400 Date: Thu, 25 Apr 2019 13:01:24 +0300 Message-Id: <83pnpaz9mz.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JrRg9GA0L3QtdCy0YHQutC40Lk=?= In-reply-to: (message from =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JrRg9GA0L3QtdCy0YHQutC40Lk=?= on Thu, 25 Apr 2019 09:47:07 +0000) Subject: Re: bug#35404: posn-at-point ignores line numbers when display property is set References: <83ftq737ve.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35404-done Cc: 35404-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Евгений Курневский > Date: Thu, 25 Apr 2019 09:47:07 +0000 > Cc: 35404@debbugs.gnu.org > > Thanks! Is it going to be backported to 26 branch? I'm not sure, the change is in a tricky place, and the problem existed for long enough to consider it rare. On top of that, we didn't yet decide whether there will be Emacs 26.3; if not, the emacs-26 branch is of no practical importance. I take it that you tested the change? If so, I'm closing the bug report. ------------=_1556186522-16914-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Apr 2019 21:37:10 +0000 Received: from localhost ([127.0.0.1]:54505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ36E-0006hx-2E for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJ36B-0006hi-Km for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:59587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJ366-0004wh-DM for submit@debbugs.gnu.org; Tue, 23 Apr 2019 17:37:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJ365-0002aU-Cw for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:37:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FROM_EXCESS_BASE64,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJ363-0004rY-Gm for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:37:01 -0400 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:40438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJ361-0004nl-Fu for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 17:36:59 -0400 Received: by mail-oi1-x231.google.com with SMTP id k10so2067111oik.7 for ; Tue, 23 Apr 2019 14:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LvRB806D7K/lrJbwibigwl7ho4g/dcdwoJDPMszhh/Q=; b=M4b3e6SBMieACszHvFIU32yHxgkL7VEKc3q+xzv0JL70Z3sytbNDq32hQ98iXXVVru hKfptAyCGCsWeuUS9pH9xQflY9Y0EfDQrjuow2K6Dcbrm5Yh+JgX0b8cCXXa6hWmwk+N kuQnZoLtU0iNRGZv0lC2B2xhxp7gEwQSRXto/ai1CwKowBSKbFFXKdW1NzWFeUE3qVhv JJXPQGopGa/wj6lsSThzv5DOWbLrTk/cCTGi2J3+6hhpgS2wm7Pw2iO4HWFCAT8YVX0L k2sxe4DTEcamQ4RAXBI0lEwBy37D+iMSHR7SLuY2mGCy6THVTqID524UXQbocR/co3Kn lIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LvRB806D7K/lrJbwibigwl7ho4g/dcdwoJDPMszhh/Q=; b=f9g4PijCcqsgib89THTf01hTbEsrZ10Yiw2lSwRUZFNvDkve6Dy4A7tQH/neBVognA ycVULmcIiLwaCFWknwYE9AFeJXC1IfwW4btFEoPagAMAZ/hsMZEalOUXA3AEOxq3wOer bGcDdH9Dig93/z57NK7j/aaxeRk21fZWQueyZ6hXNqvvhJapHGsASpwuiQAcWdDDHkQ3 FSWUA6bWqtdTBr/i4VeixA5+vZJGnHMYeIioYyPYLkPgNhLkLKotl6YNVZF0jHT1qqHX AfJwtIquuTkkj8r9RTeFRSO0BY3r2YpjeIvjOHh0ZakjUqjt8z+a6vZ8gnQqs8/PeS0P 4MQw== X-Gm-Message-State: APjAAAX2PUk7w3LteVf+yeC/2ASVWeCZxskIfv1C/ErJ05tMnOxV00AY LhC0OwoDF+1RNP8l6fGJLwGRhYsr0p8fksKM1wobubqA X-Google-Smtp-Source: APXvYqyrRLSYiy64PF77Fas0/m2IGnaIjm2BjyH3yoaD0O6hBAhWgITEryh5yPjjjVHYQJD7Jw6IJBHKONPecnsUO94= X-Received: by 2002:aca:357:: with SMTP id 84mr3324091oid.79.1556055416002; Tue, 23 Apr 2019 14:36:56 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JrRg9GA0L3QtdCy0YHQutC40Lk=?= Date: Tue, 23 Apr 2019 21:36:44 +0000 Message-ID: Subject: posn-at-point ignores line numbers when display property is set To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000525bbe0587396258" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.2 (--) --000000000000525bbe0587396258 Content-Type: text/plain; charset="UTF-8" Emacs version: 26.2 Steps to reproduce: emacs -Q Activate display-line-numbers-mode Insert some word at the first line, like "aaa" Execute (nth 2 (posn-at-point 2)), it will return (40 . 0) Execute (put-text-property 2 3 'display "A") Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0) This breaks next-line/previous-line in cases display property is used. For example, highlight-indent-guides mode uses display property to draw indentation levels. --000000000000525bbe0587396258 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs version: 26.2
Steps to reproduce:
emacs -Q
= Activate display-line-numbers-mode
Insert some word at the first line, l= ike "aaa"
Execute (nth 2 (posn-at-point 2)), it will return (4= 0 . 0)
Execute (put-text-property 2 3 'display "A")
Execute (nth 2 (posn-at-point 2)) again, it will return (4 . 0)

This breaks next-line/previous-line in cases display proper= ty is used. For example, highlight-indent-guides mode uses display property= to draw indentation levels.
--000000000000525bbe0587396258-- ------------=_1556186522-16914-1--