From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sun, 18 Jun 2017 11:42:51 +0000 Message-ID: <20170618114251.GA22671@acm> References: <83lgoqzm0v.fsf@gnu.org> <20170617202702.GC2955@acm.fritz.box> <837f0ayqdl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1497786248 32114 195.159.176.226 (18 Jun 2017 11:44:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 11:44:08 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 18 13:44:04 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 1dMYcd-000870-UW for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 13:44:04 +0200 Original-Received: from localhost ([::1]:37960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMYcj-0000vo-0O for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 07:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMYcc-0000vh-D8 for emacs-devel@gnu.org; Sun, 18 Jun 2017 07:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMYcZ-0007xT-C6 for emacs-devel@gnu.org; Sun, 18 Jun 2017 07:44:02 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:62097 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dMYcY-0007vf-Vz for emacs-devel@gnu.org; Sun, 18 Jun 2017 07:43:59 -0400 Original-Received: (qmail 44922 invoked by uid 3782); 18 Jun 2017 11:43:57 -0000 Original-Received: from acm.muc.de (p548C7CC8.dip0.t-ipconnect.de [84.140.124.200]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 18 Jun 2017 13:43:56 +0200 Original-Received: (qmail 22715 invoked by uid 1000); 18 Jun 2017 11:42:51 -0000 Content-Disposition: inline In-Reply-To: <837f0ayqdl.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 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:215738 Archived-At: Hello, Eli. On Sun, Jun 18, 2017 at 05:35:34 +0300, Eli Zaretskii wrote: > > Date: Sat, 17 Jun 2017 20:27:02 +0000 > > Cc: emacs-devel@gnu.org > > From: Alan Mackenzie [ .... ] > > Also, it's not clear what "relative" line numbers are, though I dare > > say it would become clear if I actually tried it (and I admit I > > haven't tried RTFM). ;-) > Yes, do try. (The manual will describe this in more detail.) I've just tried it. It works mostly well, except... 1. Enable relative line numbers globally. 2. Visit a file, put it in two or several side by side windows. 3. Start follow-mode. The relative line numbers are now "global", in that they are relative to point in the selected window. 4. Do something, such as C-n, which causes a redisplay. The relative numbers are now "local", in that they are relative to point in each window. It is not clear how to recover the "global" relative line numbers, except by restarting follow-mode. I think it would be best if the "global" relative line numbers could be made to work. If not, it would be better if the "local" line numbers appeared after M-x follow-mode. -- Alan Mackenzie (Nuremberg, Germany).