From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Line Numbering -- remove leading space; and, customize trailing character. Date: Fri, 23 Aug 2019 11:23:37 +0300 Message-ID: <83h868b88m.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1867"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 23 10:23:35 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i14r9-0000OV-1r for ged-emacs-devel@m.gmane.org; Fri, 23 Aug 2019 10:23:35 +0200 Original-Received: from localhost ([::1]:52856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i14r7-0004iu-SB for ged-emacs-devel@m.gmane.org; Fri, 23 Aug 2019 04:23:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43287) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i14r1-0004es-RW for emacs-devel@gnu.org; Fri, 23 Aug 2019 04:23:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i14r1-0000TC-IB; Fri, 23 Aug 2019 04:23:27 -0400 Original-Received: from [176.228.60.248] (port=4628 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i14r0-0003Oj-T4; Fri, 23 Aug 2019 04:23:27 -0400 In-reply-to: (message from Keith David Bershatsky on Thu, 22 Aug 2019 18:53:58 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239504 Archived-At: > From: Keith David Bershatsky > Date: Thu, 22 Aug 2019 18:53:58 -0700 > > All of that got me thinking ... how would it look if I removed the leading space and changed the trailing space into a "|" symbol? Attached is a screenshot of what this looks like ... > > Have there been some requests to customize the leading/trailing spaces, and, if so, what was the consensus? If not, then it may be something worth considering .... I think the attached screenshot looks kind of nifty, and saves me 11 pixels of screen real estate after eliminating one character (the space) on the left, which happens to be my frame-char-width ... The leading space that looks "useless" to you makes the display of line numbers in R2L text as efficient as in L2R text, for somewhat complicated technical reasons (I can explain if someone _really_ wants to know, but believe me: you don't ;-). I bet people who wonder about those "wasted" few pixels never use R2L or bidirectional text, but we cannot do anything in Emacs these days on such assumptions. So yes, this single space is there to stay, at least for now. The only compromise we could perhaps consider is replacing the ASCII space with a thinner non-ASCII space character (on both sides of the number), although this would get us into the mess of how to detect if the face's font has a glyph for that, and what to do if it doesn't. Which is already an expensive complication. Bottom line: with today's wide hi-res screens, I really cannot understand why half a dozen pixels "wasted" on that space could make a difference important enough to complicate the heck out of this feature.