From: Keith David Bershatsky <esq@lawlist.com>
To: 28854@debbugs.gnu.org
Subject: bug#28854: line-number-display-width erroneously returns 0 when ...
Date: Sun, 15 Oct 2017 16:31:03 -0700 [thread overview]
Message-ID: <m2wp3wc7k8.wl%esq@lawlist.com> (raw)
line-number-display-width erroneously returns 0 when at the end of a very long line and `truncate-lines` is non-nil.
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.
BACKGROUND: I am working on developing crosshairs as part of feature requests #17684 and #22873, and I need the line number display width (pixelwise) to accurately calculate when the horizontal ruler should begin to draw -- i.e., it.current_x + lnum_pixel_width = start drawing ... I am also enabling compatibility with the fnctions scroll-right and scroll-left, and when horizontal scrolling the current line.
Thanks,
Keith
next reply other threads:[~2017-10-15 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-15 23:31 Keith David Bershatsky [this message]
2017-10-16 15:53 ` bug#28854: line-number-display-width erroneously returns 0 when Eli Zaretskii
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=m2wp3wc7k8.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=28854@debbugs.gnu.org \
/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.