From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fernando =?UTF-8?Q?Pe=C3=B1a?= Newsgroups: gmane.emacs.bugs Subject: bug#42254: 27.0.91; display-line-numbers-mode incoherent shifting behaviour Date: Tue, 7 Jul 2020 23:55:12 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000da0e9805a9e10d83" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7310"; mail-complaints-to="usenet@ciao.gmane.io" To: 42254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 08 01:12:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jswkz-0001nV-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jul 2020 01:12:10 +0200 Original-Received: from localhost ([::1]:52884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jswky-0002bb-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jul 2020 19:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jswks-0002bO-JN for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 19:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jswks-0001Te-A6 for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 19:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jswks-0003Qb-5f for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 19:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fernando =?UTF-8?Q?Pe=C3=B1a?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jul 2020 23:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42254 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159416346913091 (code B ref -1); Tue, 07 Jul 2020 23:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2020 23:11:09 +0000 Original-Received: from localhost ([127.0.0.1]:36985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jswk1-0003P4-2j for submit@debbugs.gnu.org; Tue, 07 Jul 2020 19:11:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jswWW-00032q-6r for submit@debbugs.gnu.org; Tue, 07 Jul 2020 18:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jswWV-0008EA-Ti for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 18:57:11 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:41186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jswWS-0007y1-PV for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2020 18:57:11 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id c11so25766082lfh.8 for ; Tue, 07 Jul 2020 15:57:07 -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=PLj4CR0FFrLDgM/d3/IuLMEd8ZZ4Q7oNhfh41mKtmEI=; b=h1Ff1EKiESn1P9VLF6EalMII7tM3k43IV90Ib+T3qhm1k4FYIUOb0x3DQwPaYisGLx 65ikIf4cwEyHlHREUFSkgHEGCK2rYomORXayV28XBNECjLqBIg4kQUxCJrT7gjCjePop j071jJ8MX5lYru1p3yQ4x/+wE85T6JoFf/m+6d2aqDYMXkR8CDIO6r/fv2VvLBMAfJ/7 qD+HaiJGnHQ+WNFIo6wPhrkWdGDZjQ8tMNEbuTW26SLE6+xjKVMPuT4YiRP1Pbz9yUoU dG9DrwC1JIm4tKtYUWue/ngc+mjMqu9/ugm2hLaSFZyC7AjQVgnYxqQrXvrNhuzBpA29 a3RA== 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=PLj4CR0FFrLDgM/d3/IuLMEd8ZZ4Q7oNhfh41mKtmEI=; b=NbPtDlmZMowxarWY9miqsLO4zEVk72N3ymlGoVNF7dd+cMEIHXmIPJ35fNsQf/tfIT L2OCznWCjer43kuJn5D0i47udDX+zPQv/ATeANt8yno02Zob60eTLqIba4CKCF2bW2U+ 3amr4YGBt0SabtjsRfPEd3LK/tPQnY+4BYG3P9+WvbRYIRP5vVuRari8triObTD9gT3u ajhsUcWkocnuCEf/bzOMuWqzNOQGr8+gUewRyA7YIxhAPV3cAnPxg+SOZBF2EDVorDhx OEaYcPFXlSq0/RJgC8uiMdD1VGoR5ZdmfI7XW0JuXyh2/tyCgZYKVDtGwodv7HFsYj8e ocpw== X-Gm-Message-State: AOAM530lwlSYDC4kM8glUpQk7pnb0N07A4weJ5EZxuWRSaAgRr06c3Xp 7jVOUIu8DaigxizCkGSBK1qV1ia/2b01PFlE866qJ1sX6A4= X-Google-Smtp-Source: ABdhPJy6x2e1fUJMlGlVnA8ap/allMz85nHSrwlG7yxq970Z265xSDwfjmcc93ikcqgEYvqgPfZAoCf660zrjWozW0A= X-Received: by 2002:a2e:9251:: with SMTP id v17mr7833604ljg.138.1594158948681; Tue, 07 Jul 2020 14:55:48 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=ferpb1999@gmail.com; helo=mail-lf1-x12c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 Jul 2020 19:11:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182817 Archived-At: --000000000000da0e9805a9e10d83 Content-Type: text/plain; charset="UTF-8" Hello, I've noticed that when displaying line numbers with display-line-numbers-mode, the buffer shifts to the right to make space for one more digit before the line whose number has one more digit appears on the screen. The line number where it shifts seems to depend on the width of the frame, but for example with 3 digits, the buffer shifts around line 90, before the 100th is on the screen. This happens even if the file has less than 100 lines, leaving and excessive space on the left side of the line numbers. I'd expect that the buffer only shifted to the left when it was strictly necessary. In this case, when the number 100 was shown on screen. I hope it can be solved. I find it really annoying, especially when the file doesn't have line numbers with that extra digit. Greetings, Fernando In GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Version 10.15.5 (Build 19F101)) of 2020-06-17 built on iMac-de-User.local Repository revision: a71d1787f128c642f8a1fb297ef5043e20218646 Repository branch: emacs-27 Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.5 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit Display-Line-Numbers mode enabled in current buffer Making completion list... 101 (#o145, #x65, ?e) Making completion list... Configured using: 'configure --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-head@27/HEAD-a71d178_1/share/info/emacs --prefix=/usr/local/Cellar/emacs-head@27/HEAD-a71d178_1 --without-x --without-dbus --without-imagemagick --with-modules --with-gnutls --with-rsvg --with-xml2 --with-ns --disable-ns-self-contained --with-harfbuzz' Configured features: RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: es_ES.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-line-numbers-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils display-line-numbers tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 45832 11204) (symbols 48 5949 1) (strings 32 15408 1983) (string-bytes 1 518053) (vectors 16 10250) (vector-slots 8 127529 16008) (floats 8 20 28) (intervals 56 240 0) (buffers 1000 13)) --000000000000da0e9805a9e10d83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I've noticed that when displaying line numbers with
display-line-numbers-= mode, the buffer shifts to the right to make space
for one more digit before the = line whose number has one more digit
appears on the screen.

The line number where it shifts se= ems to depend on the width of the
frame, but for example with 3 digits, the buffe= r shifts around line 90,
before the 100th is on the screen. This happens even if = the file has
less than 100 lines, leaving and excessive space on the left side of= the
l= ine numbers.

= I'd expect that the buffer only shifted to the left when it was strictl= y
nece= ssary. In this case, when the number 100 was shown on screen.

I hope it can be solved. I= find it really annoying, especially when the
file doesn't have line numbers = with that extra digit.

Greetings,

Fernando


In = GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Ve= rsion 10.15.5 (Build 19F101))
of 2020-06-17 built on iMac-de-User.localRepository revi= sion: a71d1787f128c642f8a1fb297ef5043e20218646
Repository branch: emacs-27=
Windowing sy= stem distributor 'Apple', version 10.3.1894
System Description:=C2= =A0= =C2=A0Mac OS X 10.15.5

Recent messages:
For information about GNU Emacs and the GNU system, ty= pe C-h C-a.
Quit
Display-Line-Numbers mode enabled in current buffer
Making completion list..= .
101 = (#o145, #x65, ?e)
Making completion list...

Configured using:
'configure --enable-locallisppath= =3D/usr/local/share/emacs/site-lisp
--infodir=3D/usr/local/Cellar/emacs-head@27/H= EAD-a71d178_1/share/info/emacs
--prefix=3D/usr/local/Cellar/emacs-head@27/HEAD-a7= 1d178_1 --without-x
--without-dbus --without-imagemagick --with-modules --with-gn= utls
-= -with-rsvg --with-xml2 --with-ns --disable-ns-self-contained
--with-harfbuzz'=
=
Configured f= eatures:
RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES= THREADS JSON PDUMPER LCMS2 GMP


Important settings:
=C2=A0=C2=A0value of $LC_ALL: en_US.UTF-8<= /span>
= =C2=A0=C2=A0value of $LANG: es_ES.UTF-8
=C2=A0=C2=A0locale-coding-system: utf-8-unix
Major mode: Li= sp Interaction

Minor modes in effect:
=C2=A0=C2=A0display-line-numbers-mode: t
=C2=A0=C2=A0tooltip-m= ode: t
=C2=A0=C2=A0global-eldoc-mode: t
=C2=A0=C2=A0eldoc-mode: t
=C2=A0=C2=A0electric-indent= -mode: t
=C2=A0=C2=A0mouse-wheel-mode: t
=C2=A0=C2=A0tool-bar-mode: t
=C2=A0=C2=A0menu-bar-= mode: t
=C2=A0=C2=A0file-name-shadow-mode: t
=C2=A0=C2=A0global-font-lock-mode: t
=C2=A0= =C2= =A0font-lock-mode: t
=C2=A0=C2=A0blink-cursor-mode: t
=C2=A0=C2=A0auto-composition-mode= : t
=C2=A0=C2=A0auto-encryption-mode: t
=C2=A0=C2=A0auto-compression-mode: t
=C2=A0=C2=A0line= -number-mode: t

=C2=A0=C2=A0transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emac= sbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-se= c password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-p= roperty-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-de= code mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-lo= addefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
display= -line-numbers tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type= mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd f= ontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-= mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer=
= selec= t scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors = frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan= thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak = czech european ethiopic indian
cyrillic chinese composite charscript charprop cas= e-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice lo= addefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 for= mat env code-pages mule custom widget hashtable-print-readable

backquote thread= s kqueue cocoa ns lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 4583= 2 11204)
(symbols 48 5949 1)
(strings 32 15408 1983)
(string-bytes 1 518053)
(vectors 16 10250)
(vector-= slots 8 127529 16008)

(floats 8 20 28)
(intervals 56 240 0)
(buffers 1000 13))
--000000000000da0e9805a9e10d83--