all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 29597@debbugs.gnu.org, hello@paulwrankin.com
Subject: bug#29597: 26.0.90; line-number-display-width returns incorrect width
Date: Thu, 07 Dec 2017 08:55:05 +0000	[thread overview]
Message-ID: <8C2ED5FE-76D4-47F8-86F1-8AF667025EBB@gnu.org> (raw)
In-Reply-To: <1512624891.1385920.1196858744.3908725A@webmail.messagingengine.com>

On December 7, 2017 5:34:51 AM GMT+00:00, Paul Rankin <hello@paulwrankin.com> wrote:
> After reading #28248[1] I’m not sure if this is now fixed on the
> release branch, but on 26.0.90 function line-number-display-width
> returns an off-by-2 incorrect value.
> 
> See attached screenshot or [2] also.
> 
> To reproduce:
> 
> 1. emacs -Q (or emacs -Q -nw)
> 2. (display-line-numbers-mode)
> 3. (line-number-display-width)
> 
> Expected results:
> 4
> 
> Actual results:
> 2
> 
> Configuration:
> 
> GNU Emacs 26.0.90 (build 1, x86_64-apple-darwin17.2.0, NS
> appkit-1561.10 Version 10.13.1 (Build 17B48)) of 2017-11-05
> macOS 10.13.1 (17B1003)
> 
> [1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28248
> [2]: https://imgur.com/a/kuZjA

This is not a bug, see the doc string on the release branch.  The latest code on the branch has more flexible API when the optional argument is non-nil.





  reply	other threads:[~2017-12-07  8:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07  5:34 bug#29597: 26.0.90; line-number-display-width returns incorrect width Paul Rankin
2017-12-07  8:55 ` Eli Zaretskii [this message]
2017-12-08  1:44 ` Paul Rankin
2017-12-08  2:00   ` Noam Postavsky
2017-12-08  2:32     ` Paul Rankin
2017-12-08 15:01       ` Eli Zaretskii
2017-12-08 15:37         ` Noam Postavsky
2017-12-08 15:53           ` Eli Zaretskii
2017-12-08 15:55           ` Eli Zaretskii
2017-12-08 16:23             ` Noam Postavsky
2017-12-08 16:29               ` Eli Zaretskii
2017-12-08 22:39                 ` Noam Postavsky
2017-12-08 14:22   ` Eli Zaretskii
2017-12-08 14:40     ` Noam Postavsky

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=8C2ED5FE-76D4-47F8-86F1-8AF667025EBB@gnu.org \
    --to=eliz@gnu.org \
    --cc=29597@debbugs.gnu.org \
    --cc=hello@paulwrankin.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.