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, improved Date: Sun, 25 Jun 2017 17:03:30 +0300 Message-ID: <83injktb9p.fsf@gnu.org> References: <83tw35thxw.fsf@gnu.org> <87tw35cc70.fsf@rosalinde> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1498399479 1765 195.159.176.226 (25 Jun 2017 14:04:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Jun 2017 14:04:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 25 16:04:32 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 1dP89P-0008Tx-Vs for ged-emacs-devel@m.gmane.org; Sun, 25 Jun 2017 16:04:32 +0200 Original-Received: from localhost ([::1]:42725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP89V-0000BZ-5n for ged-emacs-devel@m.gmane.org; Sun, 25 Jun 2017 10:04:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP88h-0000BE-5W for emacs-devel@gnu.org; Sun, 25 Jun 2017 10:03:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP88e-0005p2-04 for emacs-devel@gnu.org; Sun, 25 Jun 2017 10:03:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP88d-0005ox-Su; Sun, 25 Jun 2017 10:03:43 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dP88d-00022e-8u; Sun, 25 Jun 2017 10:03:43 -0400 In-reply-to: <87tw35cc70.fsf@rosalinde> (message from Stephen Berman on Sat, 24 Jun 2017 23:23:15 +0200) 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:215956 Archived-At: > From: Stephen Berman > Cc: emacs-devel@gnu.org > Date: Sat, 24 Jun 2017 23:23:15 +0200 > > When the buffer ends with a newline and point is on it, no line number > is displayed on the left, though with line-number-mode enabled the mode > line does display the line number. By "point is on it", I guess you mean point is at EOB, i.e. beyond the last character position? Because otherwise, I don't think I see what you describe. If this is about point at EOB, then this is the intended behavior: the "line" where we position cursor in that case doesn't exist, so it would be IMO incorrect to count it. I'd prefer to leave the code simple, without all kinds of subtleties whose sole purpose is to add minor aesthetic sugar. > Also, with display-line-numbers set to 'relative, it looks a bit odd > to see relative numbering starting above an empty unnumbered line. Nothing one cannot get used to, I think. Thanks for the feedback.