From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Fri, 4 Oct 2019 12:22:40 +0200 Message-ID: <20191004102240.mw5pbgl7deefbbi5@Ergus> References: <83lfu389vn.fsf@gnu.org> <87ftk9v4kx.fsf@wavexx.thregr.org> <83wodl54yt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151381"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: Juanma Barranquero , rpluim@gmail.com, stefan@marxist.se, emacs-devel@gnu.org, wavexx@thregr.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 13:23:06 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 1iGLfu-000d2X-2T for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 13:23:06 +0200 Original-Received: from localhost ([::1]:46528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGLff-0007cG-Sh for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 07:22:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35473) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGKji-0002iG-6t for emacs-devel@gnu.org; Fri, 04 Oct 2019 06:22:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGKjg-00048p-Fr for emacs-devel@gnu.org; Fri, 04 Oct 2019 06:22:57 -0400 Original-Received: from sonic313-20.consmr.mail.ir2.yahoo.com ([77.238.179.187]:35368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGKjf-00047f-UH for emacs-devel@gnu.org; Fri, 04 Oct 2019 06:22:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1570184574; bh=gfRIIQ9k5n6aU4OIuxm0VyZ13AZn/wkAnlwyt0tTQWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=VI6Z5whaaOuUUeVmn1ABaWZ06PWLQ2dN1s707aOd1mpe95n2a/JcDQcN7IY8s1A/IRoL50/Sic5PJGnPb79kuUU2oaLMJk5YnZdLokQZR3DfZLhQR8ZFPCbeA5dbaydAYZLFv4itQIFKFMmqlCa6c4wRVxwPmNp1Ns6zNF8tnrwYeyjeslUmBoGlfJSVtdskBUCqhuF1dNlyDYZLXkC4g7uf5/zDlx9Kt6dVIBJIGgpznTqvqCE60qwWX5qaDbdSaqxgleRV3NtZD0YwDmyNf5ElyYl6wjlWbKR6RZgLh0QSAm1HL4ET/LKaaEWUIDxJKm9387zHqL6evO3gRaXN4w== X-YMail-OSG: P2GAA.MVM1kxVyMZY4dHgrxZevjL6GQuEs.75B1joVAn78t5iFvBe_JEhXeTjeM bJdJ7vuiMT0w2QpLwA2j3fCMilwz2b5gxlQeeiKhJ2n2NC4AVYKDTe8TLiB9ZQYXlS6IUL_RWpj8 YiNYpe.7ud5C01cmJ0vmaipc.MA_3KVmy3hvmyWNMcr_rTlwv8tGQDm5BZZtQgLfWzFlYEHXo40a F_oZnZbNI_.CtYv6kDR6lBSXKcX.Yu8tsW8hdC_PRk53TyLarqjSSLuqerc2Cs45eJG4fMskb34Z gTInEgG760IeFPHED.kZaTVdVwZFOjJZDikB3N6kZ6uUK_1wfc3UmAni8A3l5LSPGiU0OozfEE37 nVGg8a3XM_FbI2hZT108udJYa7vjN4kLI3b01slPpZC6uItAY.QwqHRE7JI2SJCcuDZSGTPjrJgw Y9Y22HCSoAGKyKcLwebXuaeb9rupFkW1D1LbUi.XspQ7s5at4mVwCCqkqK6OQ9EbAmKF9DzUM2mv O74SQsnPenStPv.mRzPk5CW3wT.XXhD1Elt_Gv0aiukwDev6EwxysRm83YoF.19aKNlJZf1W94jR H2CU28olR3J3GlQ9WXwQ16zi99btyucCN0kPh8sDtnF9Yx_NCIKLnL5pG7cA6dUU4KtD.IgvusYt hw7JIT.CNvVF9aKlQsNOZbkor4p0xQ0WSEFQ.HSCUPjd12gjwhr37XMKIhXyKqPrUINNOFezX0Pc gaLsLUVWi8b3g3vCBU0ncwmN_cSGNI7AOWYp5sXC0SypVPLfZZnlbNxiuBclSj.pv7J7jzN16LWa lJK7Ow4fDSxFjci.YoTH7HFgwxJjxv0KPuFHFBSgki Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Fri, 4 Oct 2019 10:22:54 +0000 Original-Received: by smtp404.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e323cffb3c3b10e8e591a9db25d096f5; Fri, 04 Oct 2019 10:22:52 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83wodl54yt.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 77.238.179.187 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:240560 Archived-At: On Fri, Oct 04, 2019 at 10:45:30AM +0300, Eli Zaretskii wrote: >> From: Juanma Barranquero >> Date: Fri, 4 Oct 2019 03:51:29 +0200 >> Cc: Stefan Kangas , Robert Pluim , >> Lars Magne Ingebrigtsen , Eli Zaretskii , Ergus , >> Emacs developers >> >> > Can we add a line number offset? >> > >> > display-line-number-offset >> > >> > As a signed integer which gets added the current number, defaulting to >> > 0. >> >> That's a different feature. > >Indeed. > As a different feature this should be in a different branch||patch||commit please. >> I don't understand the semantics. > >I can suggest easy solutions: > >> - If you set it to a negative number (as you'll do, to compensate for the headers), what number will had >> previous lines: negative (which is currently unsupported), or positive going backwards? > >The latter. Or maybe no number at all. > >> - What do you want to do when in relative/visual modes? > >Nothing: these modes are incompatible with the offset mode. > We should document that for the absolute numeration (display-line-numbers t) in the manual and when defining DEFVAR_LISP "display-line-numbers" right? About the names I like the major/minor approach more than M/N.