From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Fri, 04 Oct 2019 00:37:02 +0200 Message-ID: <87ftk9v4kx.fsf@wavexx.thregr.org> References: <834l4xbfmp.fsf@gnu.org> <87ef414dfn.fsf@wavexx.thregr.org> <83o9359w3l.fsf@gnu.org> <83eezycce5.fsf@gnu.org> <87muekj0i9.fsf@wavexx.thregr.org> <87d0fgagjl.fsf@gnus.org> <20191001225254.mwjnxlynjdc3mz7y@Ergus> <83lfu389vn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27231"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.5; emacs 27.0.50 Cc: Ergus , Robert Pluim , Stefan Kangas , Emacs developers , Lars Magne Ingebrigtsen , Eli Zaretskii To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 00:39:19 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG9kl-0006dt-7u for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 00:39:19 +0200 Original-Received: from localhost ([::1]:40608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG9kN-0004z6-Ts for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2019 18:38:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56677) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG9iq-0004tK-Qw for emacs-devel@gnu.org; Thu, 03 Oct 2019 18:37:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iG9ip-0003KM-Kv for emacs-devel@gnu.org; Thu, 03 Oct 2019 18:37:20 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]:55270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iG9io-0003J5-6k; Thu, 03 Oct 2019 18:37:18 -0400 Original-Received: from [37.161.187.225] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1iG9ig-000j3O-8d (envelope-from ); Fri, 04 Oct 2019 00:37:12 +0200 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:41f::63 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:240537 Archived-At: On Thu, Oct 03 2019, Juanma Barranquero wrote: >> Just wanted to point out that Bug#27734 should probably be closed once >> this is merged. > > Right. I'll note so in the commit message. > > Anything else lacking before committing? I'll throw this in, since I've mentioned it. Can we add a line number offset? display-line-number-offset As a signed integer which gets added the current number, defaulting to 0. My workflow involving the offset is to ignore the offset introduced by headers frequently present in data files. Very, very, very useful, especially when combined with a simple advice to goto-line to make the two consistent. The number you see is the data row you get=E2=84=A2. I can mention that such an offset would also obsolete the linun-relative (and some other) extension which could be fully reimplemented using N/M + offset.