From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28854: line-number-display-width erroneously returns 0 when ... Date: Mon, 16 Oct 2017 18:53:44 +0300 Message-ID: <83r2u3f5rr.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508169325 4117 195.159.176.226 (16 Oct 2017 15:55:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 15:55:25 +0000 (UTC) Cc: 28854-done@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 17:55:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e47jX-00088k-8D for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 17:55:15 +0200 Original-Received: from localhost ([::1]:33742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e47jd-0002pc-93 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 11:55:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e47jR-0002ks-Dv for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 11:55:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e47jM-0003bk-Ip for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 11:55:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e47jM-0003bQ-FO for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 11:55:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e47jM-0002es-8N for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 11:55:04 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2017 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 28854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 28854@debbugs.gnu.org, eliz@gnu.org, esq@lawlist.com Original-Received: via spool by 28854-done@debbugs.gnu.org id=D28854.150816925410152 (code D ref 28854); Mon, 16 Oct 2017 15:55:02 +0000 Original-Received: (at 28854-done) by debbugs.gnu.org; 16 Oct 2017 15:54:14 +0000 Original-Received: from localhost ([127.0.0.1]:44053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e47iY-0002df-G4 for submit@debbugs.gnu.org; Mon, 16 Oct 2017 11:54:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e47iW-0002dP-BC for 28854-done@debbugs.gnu.org; Mon, 16 Oct 2017 11:54:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e47iM-0002oe-Dw for 28854-done@debbugs.gnu.org; Mon, 16 Oct 2017 11:54:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e47iM-0002oZ-9l; Mon, 16 Oct 2017 11:54:02 -0400 Original-Received: from [176.228.60.248] (port=1990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e47iL-0003iQ-Kd; Mon, 16 Oct 2017 11:54:02 -0400 In-reply-to: (message from Keith David Bershatsky on Sun, 15 Oct 2017 16:31:03 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138531 Archived-At: > Date: Sun, 15 Oct 2017 16:31:03 -0700 > From: Keith David Bershatsky > > line-number-display-width erroneously returns 0 when at the end of a very long line and `truncate-lines` is non-nil. More accurately, when the first line visible in the window is completely hscrolled out of view. > STEP #1: Launch a current version of the master branch without any user configuration; i.e., emacs -q. > > STEP #2: (setq truncate-lines t) > > STEP #3: (display-line-numbers-mode 1) > > STEP #4: Create a long line that is about 3 times the width of the window. With point at the end of that line, evaluate: > > (line-number-display-width 'pixelwise) > > The result returned is 0, which is incorrect. Thanks, fixed on the release branch.