GNU bug report logs - #37151
26.2; Horizontal scroll with display-line-numbers mode on.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jen-Chieh Shen <jcs090218@HIDDEN>; dated Fri, 23 Aug 2019 03:14:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 37151 <at> debbugs.gnu.org:


Received: (at 37151) by debbugs.gnu.org; 23 Aug 2019 08:26:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 23 04:26:02 2019
Received: from localhost ([127.0.0.1]:39117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i14tW-000205-M2
	for submit <at> debbugs.gnu.org; Fri, 23 Aug 2019 04:26:02 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35242)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1i14tU-0001za-KJ
 for 37151 <at> debbugs.gnu.org; Fri, 23 Aug 2019 04:26:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54818)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1i14tP-0001dI-Gm; Fri, 23 Aug 2019 04:25:55 -0400
Received: from [176.228.60.248] (port=4784 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1i14tO-0003ba-10; Fri, 23 Aug 2019 04:25:54 -0400
Date: Fri, 23 Aug 2019 11:26:04 +0300
Message-Id: <83ftlsb84j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jen-Chieh Shen <jcs090218@HIDDEN>
In-reply-to: <CAMiGhTPXREUJp2AZ8aPrrS+f-TuS_+XZZBdrtc0+13Cm3s_Wag@HIDDEN>
 (message from Jen-Chieh Shen on Fri, 23 Aug 2019 09:33:51 +0800)
Subject: Re: bug#37151: 26.2;
 Horizontal scroll with display-line-numbers mode on.
References: <CAMiGhTPXREUJp2AZ8aPrrS+f-TuS_+XZZBdrtc0+13Cm3s_Wag@HIDDEN>
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: 37151
Cc: 37151 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Jen-Chieh Shen <jcs090218@HIDDEN>
> Date: Fri, 23 Aug 2019 09:33:51 +0800
> 
> When `display-line-numbers-mode` is on, the `(window-width)` seems to be
> incorrect because it dosen't include the width of
> `display-line-numbers`.

This is by design, and is not a bug.

> When I hit `end-of-line` on the line with just
> right with range `window width - display line numbers width` ~ `window width`
> the cursor will be disappeared because of the miscalculation.

This part I don't think I follow.  Please show a complete recipe for
reproducing the problem, starting from "emacs -Q" and including all
the key sequences/commands you type to reproduce the problem.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37151; Package emacs. Full text available.

Message received at 37151 <at> debbugs.gnu.org:


Received: (at 37151) by debbugs.gnu.org; 23 Aug 2019 07:47:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 23 03:47:08 2019
Received: from localhost ([127.0.0.1]:39060 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i14Hs-0007Ky-6c
	for submit <at> debbugs.gnu.org; Fri, 23 Aug 2019 03:47:08 -0400
Received: from mout.gmx.net ([212.227.15.19]:47827)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1i14Hp-0007K5-IP
 for 37151 <at> debbugs.gnu.org; Fri, 23 Aug 2019 03:47:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1566546419;
 bh=VAU+IAK04rP6IBgyDWKWY0HXtzDiWSvGFTGCx6wMjFo=;
 h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To;
 b=EjSlapjLlbQ63ET+ILOzGtTWxFwAqqW5UCOdwSsds8f266rPGAWzMVXyZn0w2SoWT
 o7Yp9h/JUi8dL0dysbR4UG54e+qqHtYVtQro/g0mDlEQjDB94qSoe6/L02VzN84Gzp
 hiucgtf9dwkVP3bsmG678oKVTTDtWXgdFqbtd4IU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.101] ([213.162.73.81]) by mail.gmx.com (mrgmx003
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MFdDB-1i474o1dm1-00Ebuj; Fri, 23
 Aug 2019 09:46:59 +0200
Subject: Re: bug#37151: 26.2; Horizontal scroll with display-line-numbers mode
 on.
To: Jen-Chieh Shen <jcs090218@HIDDEN>, 37151 <at> debbugs.gnu.org
References: <CAMiGhTPXREUJp2AZ8aPrrS+f-TuS_+XZZBdrtc0+13Cm3s_Wag@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <48c470bb-0eed-4f45-8ca5-d7c50e097447@HIDDEN>
Date: Fri, 23 Aug 2019 09:46:59 +0200
MIME-Version: 1.0
In-Reply-To: <CAMiGhTPXREUJp2AZ8aPrrS+f-TuS_+XZZBdrtc0+13Cm3s_Wag@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-DE
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:Zny/k0LMhRFpSswhaObVbkDIGEBhKK/p+pq6VMbgQOwlkguAYVd
 ZonQsgLEQV7a18LWJ68cdAej+4rcvh4y7sPaAglx4w6EBNrHb9tHJgRM8DEkAqZTpkkPZmS
 LleqQJPrljBVHVaVLWYK64jgs5EmlGJbvTYb9UnFziPvIpTIl6B+OOPem5njRaKoxTnGfe2
 dlKIpw3X/xuak/CNUjMCA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:YIt5UHF5Nxw=:OYgcdCcjTlg+zie/DHRR5A
 akxgoaAivAf8QVUDibpavBifsZNP2AiuVH4rfqasSMaowH8Hhgvc2FZm52P580DM30odDOLb+
 oQTR/AvH1D432fHJUvQPlkrdQRtKUVOzzkBtLbQGx/Kd7I4RbbpCimFI0YUvNqPnwQ51VuMOB
 8UfkvrhIiDR0/CU9cjLG+/JDWUJez1XJEVUYTN+MMFaRr0nmCUPYb0XbU6Sl3LN/yycGV5iui
 XXb2YhRZL8KkJyFBTeEJj34JH3VKBT3aL7viJ21yE0fY2hta3Yxhxts404nFEHqQFfy9NQ84+
 KpLaZL742Xptu1edNNZgea16TrW6o+NSZ6pHux6NsbGSrANh3vn0n6T5aWDV8FttTebawfcVv
 PW1yfJiS+aV6aP/MlPNULBL/B8cCcO/Fa1b6abNPiUNjj3jynMvQbybTzJ/3L47BnQLq8qPkt
 avt8ilb7CszbpRyxy1EjjsBu0TpCDhXUZVg7di2gOE8Of4m1LbpfyStTW7wn28hvfREzvKCnZ
 i62PulN+PijpzwD1PAOroMdGK3kerfMl7tdP+e7GGnSwMLdEOoWDLtk0DhBTKtbDppV/Q+i5B
 9xxlDtqj9nfgquJch9lzXaGdrEKF8YgD8c37YabAKdYODcckZxPppsxu3AqdGypCrKtGU6rMV
 WIWmVKKWOa4+XSgqMy/P6Viweaaoo7+EBg9aao7c1iiojPn055ciZA46zwkyFxsqNaZrOrMMi
 pZbKCmLedwWqDLjTfRwmMm+cyopcHcMAO2/doWngbRQQAiHi9k9qfDyF2kulXAZ6jG7EbF/HZ
 U8JuyfdSU2K/+g0vJQ1WaZxjIoLqxLROpIhfdAFfVzFKMGvRlShKKe5mSOq1y6e3oRCRrVimB
 9V4M1F4wnuEQ23u63Ecm1f7ZS92u2V70OruEwMS4uwMM6MUTmgSt464yerAF1Y2kddC2zyD3i
 g8QBbcAig0MBkVo2RcIUKSftwNPwZOLBw3MM7Z/8FHIthRbcJcTFdTL0c2/N5SDka1xlPbBS1
 v1jTCBoGZhQw8ORcyYCnnjmJIt+eufR2bGqdWa1NofInjrIjWR2ZD2oP6CG7xQD+r2if+tVQb
 DmmgPZkqfOdLM8I3JiRLhXkFhIkJ0Y50VsHB+SQDu4vOBQmZTDJNw+btSQhOZeBmJXcQUHxAe
 NXZvc=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37151
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

 > When `display-line-numbers-mode` is on, the `(window-width)` seems to be
 > incorrect because it dosen't include the width of
 > `display-line-numbers`. When I hit `end-of-line` on the line with just
 > right with range `window width - display line numbers width` ~ `window
 > width`
 > the cursor will be disappeared because of the miscalculation.

Can you please tell us more precisely what you did and where
'window-width' was used in that miscalculation?

Thanks, martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37151; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Aug 2019 03:13:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 22 23:13:21 2019
Received: from localhost ([127.0.0.1]:38678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i100t-0008TY-MI
	for submit <at> debbugs.gnu.org; Thu, 22 Aug 2019 23:13:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:48586)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jcs090218@HIDDEN>) id 1i0ySs-0003z9-7d
 for submit <at> debbugs.gnu.org; Thu, 22 Aug 2019 21:34:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51899)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <jcs090218@HIDDEN>) id 1i0ySr-0002Jk-3B
 for bug-gnu-emacs@HIDDEN; Thu, 22 Aug 2019 21:34:06 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_IMAGE_ONLY_16,HTML_MESSAGE,
 HTML_SHORT_LINK_IMG_2,T_REMOTE_IMAGE,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jcs090218@HIDDEN>) id 1i0ySq-0005Mh-0t
 for bug-gnu-emacs@HIDDEN; Thu, 22 Aug 2019 21:34:04 -0400
Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:44867)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <jcs090218@HIDDEN>) id 1i0ySp-0005LM-Or
 for bug-gnu-emacs@HIDDEN; Thu, 22 Aug 2019 21:34:03 -0400
Received: by mail-wr1-x434.google.com with SMTP id p17so7078806wrf.11
 for <bug-gnu-emacs@HIDDEN>; Thu, 22 Aug 2019 18:34:03 -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=pgZnggFjFQa2QvpVxvEFp5SiXWvpQvwjHIGzjRm9G3g=;
 b=r7XolkSKc3EuAeznfnWIQ4RtVYwVjo2NawHCZXcuz2Yg9M8FYzCSblxlej7CkH2YkY
 09s9evWrHnJXpg4zWSuXudKlexHgukAwlDC1QndX3g998ZwnPg/G5MYgE/3iRg1gT0rG
 Rpj1MpGv6RdHPSHIJ/qe++qRCXyF6xIQAHv+k2ErMZJgB/heU7GcukPgT8bC+wEn3hIf
 l3/n1lYWlMt0BJ+OaVz+MlUJqj2Vx3bCPkxpD7Xu7bql8u3XEewTpYFhvFNECe9LrVem
 H8KR2PFvjXtVOw50CBXzqneB/VoaJc+WZViqILkkWrAVbZkerPKK6yLsm21ORBBk5o7P
 +w2Q==
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=pgZnggFjFQa2QvpVxvEFp5SiXWvpQvwjHIGzjRm9G3g=;
 b=T3fpE82uJnFUB03xxN3A5oFSzbHkmFuRiQ9d/C3xx7y4Q80+j1Xer5ns5MYQwO35wn
 yAGEYcuCinIcBikFNFWinsZEYkPu3ba/4qFb8/DZUMuC3ubj1eSFffRm2y1nABKICptK
 YD9B1HI9WJ269N/iQ6VunCE96FpD155iDC5Q6B6oFKr/OpPAw93YHt5qMO3E7UBWIp+q
 Qy5XQNl8ogS2PXaWEVS3FyoSdPRQzC0Xm6BY5kvBEEJA4AFExDBzw6QgxnI65+3vTXyN
 ZGWkTGimW50tlwX06KHJxofPq3N4wA4Dn9vQGBUkVCs90U4AVucO54OKP3c/q/qEnaK9
 Gf5Q==
X-Gm-Message-State: APjAAAXLgaKOaABo2rQV8DR9PIDB71ks7DgBFnrlQbB1a4WIFHmtaMaL
 /+zq837184SkXqsRrU5aX365SiTAjMmblLUZBYcFeqge7Vk=
X-Google-Smtp-Source: APXvYqzgUL2qPyX+26o81t5eXEerlXLM3UqQhDuz6GwgFa0pQL7JmJf8N+QbwJdEKzMdfl/be3/b2WMS8JomeWBeW94=
X-Received: by 2002:adf:e782:: with SMTP id n2mr1663461wrm.1.1566524042097;
 Thu, 22 Aug 2019 18:34:02 -0700 (PDT)
MIME-Version: 1.0
From: Jen-Chieh Shen <jcs090218@HIDDEN>
Date: Fri, 23 Aug 2019 09:33:51 +0800
Message-ID: <CAMiGhTPXREUJp2AZ8aPrrS+f-TuS_+XZZBdrtc0+13Cm3s_Wag@HIDDEN>
Subject: 26.2; Horizontal scroll with display-line-numbers mode on.
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000000fb9250590becd69"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::434
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 22 Aug 2019 23:13:18 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

--0000000000000fb9250590becd69
Content-Type: text/plain; charset="UTF-8"

When `display-line-numbers-mode` is on, the `(window-width)` seems to be
incorrect because it dosen't include the width of
`display-line-numbers`. When I hit `end-of-line` on the line with just
right with range `window width - display line numbers width` ~ `window
width`
the cursor will be disappeared because of the miscalculation.

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

--0000000000000fb9250590becd69
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">When `display-line-numbers-mode` is on, the `(window-width=
)` seems to be<br>incorrect because it dosen&#39;t include the width of<br>=
`display-line-numbers`. When I hit `end-of-line` on the line with just<br>r=
ight with range `window width - display line numbers width` ~ `window width=
`<br>the cursor will be disappeared because of the miscalculation.<br></div=
><div id=3D"DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style=3D"border-top:1px solid #d3d4de">
	<tr>
        <td style=3D"width:55px;padding-top:13px"><a href=3D"http://www.avg=
.com/email-signature?utm_medium=3Demail&amp;utm_source=3Dlink&amp;utm_campa=
ign=3Dsig-email&amp;utm_content=3Dwebmail" target=3D"_blank"><img src=3D"ht=
tps://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" al=
t=3D"" width=3D"46" height=3D"29" style=3D"width: 46px; height: 29px;"></a>=
</td>
		<td style=3D"width:470px;padding-top:12px;color:#41424e;font-size:13px;fo=
nt-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href=
=3D"http://www.avg.com/email-signature?utm_medium=3Demail&amp;utm_source=3D=
link&amp;utm_campaign=3Dsig-email&amp;utm_content=3Dwebmail" target=3D"_bla=
nk" style=3D"color:#4453ea">www.avg.com</a>
		</td>
	</tr>
</table><a href=3D"#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width=3D"1" heigh=
t=3D"1"></a></div>

--0000000000000fb9250590becd69--




Acknowledgement sent to Jen-Chieh Shen <jcs090218@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37151; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.