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: Native display of line numbers, improved Date: Sat, 24 Jun 2017 20:27:07 +0300 Message-ID: <83tw35thxw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1498325287 21716 195.159.176.226 (24 Jun 2017 17:28:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2017 17:28:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 24 19:28:03 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 1dOoqp-0005QJ-8Z for ged-emacs-devel@m.gmane.org; Sat, 24 Jun 2017 19:28:03 +0200 Original-Received: from localhost ([::1]:39993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOoqu-0007Dg-8L for ged-emacs-devel@m.gmane.org; Sat, 24 Jun 2017 13:28:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOoqK-0007CK-Ag for emacs-devel@gnu.org; Sat, 24 Jun 2017 13:27:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOoqF-0006Dz-CY for emacs-devel@gnu.org; Sat, 24 Jun 2017 13:27:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOoqF-0006Do-8u for emacs-devel@gnu.org; Sat, 24 Jun 2017 13:27:27 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1942 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dOoqD-00012F-K2 for emacs-devel@gnu.org; Sat, 24 Jun 2017 13:27:26 -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:215936 Archived-At: OK, I've updated the scratch/line-numbers branch with several bugfixes and some new features. All the bugs reported till now are fixed, with the sole exception of truncated-lines display. The latter behaves better now (in particular, the funny problem reported by Martin, whereby you couldn't get to the line beginning, is gone), but there are still issues with hscrolling lines with TABs; I will try to fix those later. The tricky problems reported by Alan for Follow mode are also solved (relative line numbers are now local to each window under Follow mode). I fixed the issue with TAB stops, but only for the line-number display, leaving alone other similar issues, like with line-prefix. I added the features requested by several people, including relative numbers with current line's number absolute, a separate face for displaying the current line, and the display-line-numbers-disable property for company-mode and its ilk. The only requested feature that remains unimplemented is relative line numbers counted visually. The reason is that I'm not sure I understand the requirements (and also not sure whether people who asked for that have thought that through). I will post a separate message about that. Comments and bug reports are welcome. Apart of fixing bugs and perhaps implementing the visual line counting, the only changes I plan to commit before landing this on master is proper documentation in the 2 manuals. Otherwise, the feature is complete from my POV, so here's your chance to give it a ride before it lands. Enjoy.