From unknown Mon Jun 16 23:46:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35404 <35404@debbugs.gnu.org> To: bug#35404 <35404@debbugs.gnu.org> Subject: Status: posn-at-point ignores line numbers when display property is set Reply-To: bug#35404 <35404@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:46:43 +0000 retitle 35404 posn-at-point ignores line numbers when display property is s= et reassign 35404 emacs submitter 35404 =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 severity 35404 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 23 17:37:10 2019 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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 24 08:28:36 2019 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 To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JrRg9GA0L3QtdCy0YHQutC40Lk=?= In-reply-to: (kurnevsky@gmail.com) Subject: Re: bug#35404: posn-at-point ignores line numbers when display property is set 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-Debbugs-Envelope-To: 35404 Cc: 35404@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: 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 debbugs-submit-bounces@debbugs.gnu.org Thu Apr 25 05:47:27 2019 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?B?0JXQstCz0LXQvdC40Lkg0JrRg9GA0L3QtdCy0YHQutC40Lk=?= Date: Thu, 25 Apr 2019 09:47:07 +0000 Message-ID: Subject: Re: bug#35404: posn-at-point ignores line numbers when display property is set To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000004083b8058757b406" X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 35404 Cc: 35404@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: -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 debbugs-submit-bounces@debbugs.gnu.org Thu Apr 25 06:01:56 2019 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. From unknown Mon Jun 16 23:46:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 23 May 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator