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: Native display of line numbers Date: Sun, 18 Jun 2017 17:21:32 +0300 Message-ID: <8337axz89f.fsf@gnu.org> References: <83lgoqzm0v.fsf@gnu.org> <83efuizd1r.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1497795742 9462 195.159.176.226 (18 Jun 2017 14:22:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 14:22:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 18 16:22:18 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 1dMb5l-0002DH-M3 for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 16:22:17 +0200 Original-Received: from localhost ([::1]:38529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMb5q-0001bk-OF for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 10:22:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMb5J-0001bT-MT for emacs-devel@gnu.org; Sun, 18 Jun 2017 10:21:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMb5G-0004Dn-JL for emacs-devel@gnu.org; Sun, 18 Jun 2017 10:21:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMb5G-0004Dj-Fm; Sun, 18 Jun 2017 10:21:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3279 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dMb5F-0007Un-Ol; Sun, 18 Jun 2017 10:21:46 -0400 In-reply-to: (message from Stefan Monnier on Sat, 17 Jun 2017 17:25:44 -0400) 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:215741 Archived-At: > From: Stefan Monnier > Date: Sat, 17 Jun 2017 17:25:44 -0400 > > Whether or not it's representative doesn't really matter: the > performance you see with nlinum is a real problem when you bump into it. > [ IOW, I'm not here to defend nlinum ;-) ] Well, it's not about defending, it's about benchmarking the new code relative to the old one. I was worried that constantly counting lines during redisplay might be a significant setback, and was relieved to find out that wasn't the case. > > The fact that the numbers are always displayed on the left is bad > > enough; worse, the digits in the numbers are in reverse order. E.g., > > visit TUTORIAL.he, then turn on linum-mode or nlinum-mode, and watch > > the numbers closely. > > Duh, I had tried it, but indeed skipped the "watch the numbers closely" > part. My naive L2R background makes me think "this looks like > a rendering bug" It could be a rendering bug, indeed. In general, how to render bidirectional text in the margins is a dark corner, since it isn't clear whether the bidi context of the buffer text is relevant or not.