From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31717: 26.1; display-line-numbers-mode enlarges indicator without need Date: Tue, 05 Jun 2018 18:44:26 +0300 Message-ID: <83muw99r1h.fsf@gnu.org> References: <87vaaym04z.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me> <83fu21b9dx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528213391 3517 195.159.176.226 (5 Jun 2018 15:43:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 15:43:11 +0000 (UTC) Cc: 31717@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 17:43:07 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 1fQE70-0000k5-60 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 17:43:06 +0200 Original-Received: from localhost ([::1]:47628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQE97-0005ay-4f for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 11:45:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQE8v-0005Zo-Tt for bug-gnu-emacs@gnu.org; Tue, 05 Jun 2018 11:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQE8s-0005Is-Rk for bug-gnu-emacs@gnu.org; Tue, 05 Jun 2018 11:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55715) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQE8s-0005Il-Nf for bug-gnu-emacs@gnu.org; Tue, 05 Jun 2018 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fQE8s-00059a-Ff for bug-gnu-emacs@gnu.org; Tue, 05 Jun 2018 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jun 2018 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 31717-submit@debbugs.gnu.org id=B31717.152821346719752 (code B ref 31717); Tue, 05 Jun 2018 15:45:02 +0000 Original-Received: (at 31717) by debbugs.gnu.org; 5 Jun 2018 15:44:27 +0000 Original-Received: from localhost ([127.0.0.1]:35379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQE8J-00058W-6P for submit@debbugs.gnu.org; Tue, 05 Jun 2018 11:44:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQE8H-00058H-H2 for 31717@debbugs.gnu.org; Tue, 05 Jun 2018 11:44:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQE89-0004lc-71 for 31717@debbugs.gnu.org; Tue, 05 Jun 2018 11:44:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQE89-0004lW-3T; Tue, 05 Jun 2018 11:44:17 -0400 Original-Received: from [176.228.60.248] (port=3946 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQE87-0001jZ-7f; Tue, 05 Jun 2018 11:44:15 -0400 In-reply-to: (message from Carlos Pita on Tue, 5 Jun 2018 12:19:55 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:147031 Archived-At: > From: Carlos Pita > Date: Tue, 5 Jun 2018 12:19:55 -0300 > Cc: 31717@debbugs.gnu.org > > > If you don't want to "waste" one more column, you can use one of the > > optional features, e.g., set display-line-numbers-width-start non-nil, > > with or without display-line-numbers-grow-only non-nil. > > I'm failing to see how this would prevent the "wasteful" behavior. Are > you just saying that if I reserve all the space in advance I won't be > seeing the widening happening since it have already happened up front? AFAIU, it will reserve exactly the space needed by the number of lines in the file. > I understand all your points above, so I'm going to ask for a more > modest alternative: the ability to suppress the left, right or both > whitespaces in the indicator. This produces ugly display, so I don't think it's a good idea. If you want to reserve less space for the line numbers, just customize the line-number face to use a smaller font.