From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#31717: 26.1; display-line-numbers-mode enlarges indicator without need Date: Mon, 04 Jun 2018 23:34:52 -0300 Message-ID: <87vaaym04z.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528166112 7169 195.159.176.226 (5 Jun 2018 02:35:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 02:35:12 +0000 (UTC) To: 31717@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 04:35:08 2018 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 1fQ1oQ-0001kk-KA for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 04:35:06 +0200 Original-Received: from localhost ([::1]:42806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQ1qX-0002jM-MD for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 22:37:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQ1pP-00029W-DJ for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQ1pK-000464-Fb for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:36:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQ1pK-00045q-BS for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fQ1pK-0003e9-2k for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jun 2018 02:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152816612713971 (code B ref -1); Tue, 05 Jun 2018 02:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jun 2018 02:35:27 +0000 Original-Received: from localhost ([127.0.0.1]:33809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQ1ok-0003dH-J5 for submit@debbugs.gnu.org; Mon, 04 Jun 2018 22:35:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQ1oi-0003d4-V6 for submit@debbugs.gnu.org; Mon, 04 Jun 2018 22:35:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQ1ob-0003av-GL for submit@debbugs.gnu.org; Mon, 04 Jun 2018 22:35:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQ1ob-0003ar-Ci for submit@debbugs.gnu.org; Mon, 04 Jun 2018 22:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQ1oX-0001ne-W2 for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:35:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQ1oQ-0003Wf-Ti for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:35:12 -0400 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:37196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQ1oQ-0003WV-Nv for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 22:35:06 -0400 Original-Received: by mail-qt0-x231.google.com with SMTP id q13-v6so893371qtp.4 for ; Mon, 04 Jun 2018 19:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=ZuZjTcSFP33yyUBZ1bwun90t7YRc1+no4WQmkmYRWTo=; b=FDquo5NJ8MuLmnDz+LnFoS0P/6QoxpRcDQRk8QVWbzt00XYYjbx98uDfC92IfPWnF9 4vzHxOQUcZpheQqSX3Ma3VA7VspgFZaLrF0dWJJdGjiEILWdCK4AzSqITa3SNZKbXe33 p2+monwjqN19GioU4Ek+lietA/9/c0KAnTk6OpV5CXpSKx71dQU0kJ37OBnTCN5dsoD1 qHzXtiUTuDTft/q4tGqBKlrz4F2YB1DS8nQjEWv7HkWUOtOhkF7pqNkDMxGEYOYMYEQv fRAr6HmmxzHTpMWBQ68lOiVGfju32Oh7Zj2w2fRsB76ZdomLtf4+DlvyOtjds57s3cC7 bl6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=ZuZjTcSFP33yyUBZ1bwun90t7YRc1+no4WQmkmYRWTo=; b=g0384+BvRaJV4oyy4r05hzLkYBRZRbr3rh2GCkTPIgNbEezYnFRAb5fte7W4VlbItP 4uJn613Dm9SLfzYWdp1FXZm0XdnJqZX/Rp1qPoe8PGdCxW/plx3I+0cb59izZN2Za9BT M0pZoVstkDTaHvVtEVxVentnjI7NHGS+lNWL2V9zgEZ8sF/qpMMsRCXjC5Ox6Q0QIYDG af4eGYs/L84UcA50fzNV5R8RcKHhLEZdFNhtmjsNCRnZz9vYhsUk9xFwddL2LikP2xWd qPKYM0ZJVP/6ckMlRj1h7ZK8jD4bvPofSR/z0fcqotrFrpJdmkFLWRV0jfyG9mIA8dIe 8zSA== X-Gm-Message-State: APt69E1m7MeBwU76gyCXpk3InTAqGL7l1z08QsJB0TthQhMwQTQfuxZx pMUUUWqJjIqQEp4f+ApHnlkXAQ== X-Google-Smtp-Source: ADUXVKKE7FUDXr6UQ1lI7NcASv8cCoOF1LcRw8RyeUzpb7l8B5fDs0VLBLARC99hWS4KUwUOEc0OvA== X-Received: by 2002:ac8:3338:: with SMTP id t53-v6mr22069928qta.312.1528166105791; Mon, 04 Jun 2018 19:35:05 -0700 (PDT) Original-Received: from carlos ([190.2.33.33]) by smtp.gmail.com with ESMTPSA id t6-v6sm14839107qtn.86.2018.06.04.19.35.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 19:35:05 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:146986 Archived-At: When transitioning from line 69 to line 70 a new column is added to the left of the indicator as if there was a need to fit three digits despite that the file has less than 100 lines and despite that if it were larger line 100 would fall out of the window. I have tested the transition from 969 to 970 and it shows the same effect. It's as if the mode is anticipating an extra digit soon and playing conservative. I understand that there could be performance reasons for doing this (thus avoiding the need to compute the remaining lines in a window or file) but: 1. The mode is already adding two whitespaces around the line number indicator. Wasting one more char is on the verge of infuriating ;) 2. AFAICS computing the file size doesn't seem too demanding a task, neither the remaining lines in a window (although the window could be resized). --- In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-29 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Manjaro Linux Recent messages: Quit [2 times] C-h C-g is undefined nil Quit Display-Line-Numbers mode disabled in current buffer x is undefined Display-Line-Numbers mode enabled in current buffer 0 (#o0, #x0, ?\C-@) scroll-down-command: Beginning of buffer [3 times] Making completion list... Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: display-line-numbers-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t ido-everywhere: t winner-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 buffer-read-only: t column-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp cl-print jka-compr vc-git display-line-numbers doom-tomorrow-night-theme doom-themes doom-themes-common cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings company edmacro kmacro pcase help-fns radix-tree help-mode elpy find-file-in-project ivy delsel ivy-overlay ffap thingatpt diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django s elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map ido grep compile comint ansi-color files-x etags xref project cus-edit cus-start cus-load wid-edit winner ring windmove finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 395972 45995) (symbols 48 33197 1) (miscs 40 181 236) (strings 32 77765 6307) (string-bytes 1 2252569) (vectors 16 53016) (vector-slots 8 923948 18050) (floats 8 186 268) (intervals 56 4758 0) (buffers 992 16))