From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode Date: Thu, 05 Oct 2017 22:50:55 +0300 Message-ID: <83efqhwezk.fsf@gnu.org> References: <1507229521.6891.6.camel@gmail.com> <83fuaxwgql.fsf@gnu.org> <1507232129.15251.12.camel@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507233120 2124 195.159.176.226 (5 Oct 2017 19:52:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 19:52:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Matthew Plant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 21:51:57 2017 Return-path: Envelope-to: ged-emacs-devel@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 1e0CBX-0008Cx-Fb for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 21:51:55 +0200 Original-Received: from localhost ([::1]:41827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CBe-0000OZ-CE for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 15:52:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CAw-0000OC-3r for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:51:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0CAr-0003ZC-9T for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:51:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CAr-0003Yy-5d; Thu, 05 Oct 2017 15:51:13 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3779 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e0CAp-0003Wy-H8; Thu, 05 Oct 2017 15:51:12 -0400 In-reply-to: <1507232129.15251.12.camel@gmail.com> (message from Matthew Plant on Thu, 05 Oct 2017 12:35:29 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:219142 Archived-At: > From: Matthew Plant > Date: Thu, 05 Oct 2017 12:35:29 -0700 > > My apologies, I did not notice that line-number face existed because it > is not part of the display line numbers group. This does exactly what I > want. > > That being said, shouldn't this face be part of the group display-line- > number? Faces for compilation errors are part of the the compilation > group. My reasoning was that this is one of the basic faces we provide, so it's in the basic faces group. > Being able to specify which side the line numbers appear I imagine > would be useful for editing right to left languages. When the paragraph direction is right-to-left, the numbers automatically appear on the right. You should be able to see that if you visit TUTORIAL.he with display-line-numbers-mode turned on. > That being said I can't find one editor that supports this feature Well, Emacs does ;-) > You said in a separate reply that separation between the numbers and > the text is kept with a white-space glyph. Why not just let this be a > buffer or mode local string specified by the user? There's a technical problem with doing that, which I couldn't solve. It would also slow down redisplay, while performance was high on my priority list when working on this feature.