From: Eli Zaretskii <eliz@gnu.org>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: 28854-done@debbugs.gnu.org
Subject: bug#28854: line-number-display-width erroneously returns 0 when ...
Date: Mon, 16 Oct 2017 18:53:44 +0300 [thread overview]
Message-ID: <83r2u3f5rr.fsf@gnu.org> (raw)
In-Reply-To: <m2wp3wc7k8.wl%esq@lawlist.com> (message from Keith David Bershatsky on Sun, 15 Oct 2017 16:31:03 -0700)
> Date: Sun, 15 Oct 2017 16:31:03 -0700
> From: Keith David Bershatsky <esq@lawlist.com>
>
> 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.
prev parent reply other threads:[~2017-10-16 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-15 23:31 bug#28854: line-number-display-width erroneously returns 0 when Keith David Bershatsky
2017-10-16 15:53 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r2u3f5rr.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=28854-done@debbugs.gnu.org \
--cc=esq@lawlist.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.