From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers landed on master Date: Sat, 5 Oct 2019 08:26:06 +0200 Message-ID: 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> <87ftk9v4kx.fsf@wavexx.thregr.org> <83wodl54yt.fsf@gnu.org> <87pnjchm7p.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000150ca0059423e795" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38919"; mail-complaints-to="usenet@blaine.gmane.org" Cc: spacibba@aol.com, rpluim@gmail.com, stefan@marxist.se, Emacs developers , Lars Magne Ingebrigtsen , Eli Zaretskii To: "Yuri D'Elia" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 05 08:27:35 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 1iGdXQ-0009y2-6J for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 08:27:32 +0200 Original-Received: from localhost ([::1]:54392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGdXO-00017d-AV for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 02:27:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49259) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGdWj-00017U-5j for emacs-devel@gnu.org; Sat, 05 Oct 2019 02:26:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGdWi-0007LJ-3D for emacs-devel@gnu.org; Sat, 05 Oct 2019 02:26:48 -0400 Original-Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:35722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGdWg-0007KD-3l; Sat, 05 Oct 2019 02:26:46 -0400 Original-Received: by mail-qk1-x741.google.com with SMTP id w2so7960952qkf.2; Fri, 04 Oct 2019 23:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VFHDBxMiVczuJ1K6n6miAzUxjTX+tMxCfEdR3NOoDP4=; b=egJxouuRLydQveZTk0t/bTUv0isk41QRek43rx8//bX9zaqCZBpTxn9WYRYIXx7uO/ UGUN1HSycGQQ46MB/gyqxPfp4PL/r343KxWt+G0RxCOQU+GIYAte536PcLz7NDeeKtTJ nqOmUd5QDMSMNq7UJS46jUoeO4RSH0/IYVpp3zoFXS0TC0A9xwpP5Q8ZpST1wpSnxFgB 2HGnhAKmQbEbNxzPUH3bADJDRfoaqOq2NJn9F9P/F8frfYjriAgyOrd1KkWaz/D57XEZ NWsIVQ+BYtp9JO//Ly8r1KtltqslmEvV6R28jsPlKn3bnllpfq1vVdx4Ncq21zaoUa4/ +RfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VFHDBxMiVczuJ1K6n6miAzUxjTX+tMxCfEdR3NOoDP4=; b=N1b1kNbCWyXTrfh+q16Q5RpHW3t95V7bahAvulHHcDWnXR3HSdk9qrlNU+WGuID+Ou mxNlP4gimUEE2YkNnLiSLhJJFQgxVaF81BmZRsx2fIQZO7fBCbBTuCURMRFdQqBXnHPQ ltCShdnmWOvqzPRqpGkbprIgWQ5RHurEzm2SDga2hvSni6Tc6ueedqt/AwRDAFiIy76m 2w9jQa5EFLxugvuaFVPl9YIW1r8hOfT6ArpsS6ZEZZCZug+Vv1j7yvwOohY1C+rBSgVQ wy9Bg5jXc3MvJr/vW4Krn0uTkRrQBHF/4m8IjmBq5opNTgOMGDrXXyvAq9A/k1DTtHBv mnhg== X-Gm-Message-State: APjAAAW3UToc+kpMEOTeNBBv9RbkEedZBu1kMR1JgYavHsZqQljaCzTW F+yJ+MCFcA7Ec/8FEApcYBUwA+AgvcBVmazz4xc= X-Google-Smtp-Source: APXvYqzVVaEjq/Ughw09jazCEt2DaYD9wk3CgQ/z5jNt7PEq2mg1/7EZyYHlQ0xEVbba01Nl2MagtvVmsGYprDOP6CM= X-Received: by 2002:a37:4802:: with SMTP id v2mr13828522qka.496.1570256805193; Fri, 04 Oct 2019 23:26:45 -0700 (PDT) In-Reply-To: <87pnjchm7p.fsf@wavexx.thregr.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::741 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:240593 Archived-At: --000000000000150ca0059423e795 Content-Type: multipart/alternative; boundary="000000000000150c9d059423e793" --000000000000150c9d059423e793 Content-Type: text/plain; charset="UTF-8" Incomplete patch (no docs other than the variable's docstring, etc.) AFAICS, it implements the suggested behavior with respect to relative/visual and narrowing. Please check that it does what you (y'all ;-) expected. TIA --000000000000150c9d059423e793 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Incomplete patch (no docs other than the = variable's docstring, etc.)

AFAICS, it implements th= e suggested behavior with respect to relative/visual and narrowing.

Please check that it does what you (y'all ;-) expecte= d.

TIA

--000000000000150c9d059423e793-- --000000000000150ca0059423e795 Content-Type: application/octet-stream; name="0001-First-shot-at-display-line-numbers-offset.patch" Content-Disposition: attachment; filename="0001-First-shot-at-display-line-numbers-offset.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k1d6awv20 RnJvbSA2ZjU2ZTMyOWNkZjI2Y2Q1ZDBkYWI5ZmM5ZjhmYTg4MzU4NTEyNzVkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKdWFubWEgQmFycmFucXVlcm8gPGxla2t0dUBnbWFpbC5jb20+ CkRhdGU6IFNhdCwgNSBPY3QgMjAxOSAwODoyMDoyMyArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIEZp cnN0IHNob3QgYXQgYGRpc3BsYXktbGluZS1udW1iZXJzLW9mZnNldCcKCi0tLQogc3JjL3hkaXNw LmMgfCAyOSArKysrKysrKysrKysrKysrKysrKysrKysrKy0tLQogMSBmaWxlIGNoYW5nZWQsIDI2 IGluc2VydGlvbnMoKyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL3hkaXNwLmMg Yi9zcmMveGRpc3AuYwppbmRleCA5ZDFmZGVjYWZmLi4zMzQzMTNiZDQ1IDEwMDY0NAotLS0gYS9z cmMveGRpc3AuYworKysgYi9zcmMveGRpc3AuYwpAQCAtMjI0MDksMTAgKzIyNDA5LDIyIEBAIG1h eWJlX3Byb2R1Y2VfbGluZV9udW1iZXIgKHN0cnVjdCBpdCAqaXQpCiAgIHB0cmRpZmZfdCBzdGFy dF9mcm9tLCBieXRlcG9zOwogICBwdHJkaWZmX3QgdGhpc19saW5lOwogICBib29sIGZpcnN0X3Rp bWUgPSBmYWxzZTsKLSAgcHRyZGlmZl90IGJlZ19ieXRlID0gZGlzcGxheV9saW5lX251bWJlcnNf d2l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or ICBERUZWQVJfSU5UICgiZGlzcGxheS1saW5lLW51bWJlcnMtb2Zmc2V0IiwgZGlzcGxheV9saW5l X251bWJlcnNfb2Zmc2V0LAorICAgIGRvYzogLyogQSBzaWduZWQgaW50ZWdlciBhZGRlZCB0byB0 aGUgY3VycmVudCBsaW5lIG51bWJlci4KK1RoaXMgb25seSBoYXMgZWZmZWN0IHdpdGggYWJzb2x1 dGUgbGluZSBudW1iZXJzLiBBbHNvLCBub3RlIHRoYXQKK3doZW4gdGhpcyB2YXJpYWJsZSBpcyBu b24temVybywgbmFycm93aW5nIGlzIGRpc3JlZ2FyZGVkIGFzIGlmCitgZGlzcGxheS1saW5lLW51 bWJlci13aWRlbicgd2VyZSBub24tbmlsLiAgKi8pOworICBkaXNwbGF5X2xpbmVfbnVtYmVyc19v ZmZzZXQgPSAwOworICBERUZTWU0gKFFkaXNwbGF5X2xpbmVfbnVtYmVyc19vZmZzZXQsICJkaXNw bGF5LWxpbmUtbnVtYmVycy1vZmZzZXQiKTsKKyAgRm1ha2VfdmFyaWFibGVfYnVmZmVyX2xvY2Fs IChRZGlzcGxheV9saW5lX251bWJlcnNfb2Zmc2V0KTsKKwogICBERUZWQVJfQk9PTCAoImRpc3Bs YXktZmlsbC1jb2x1bW4taW5kaWNhdG9yIiwgVmRpc3BsYXlfZmlsbF9jb2x1bW5faW5kaWNhdG9y LAogICAgIGRvYzogLyogTm9uLW5pbCBtZWFucyBkaXNwbGF5IHRoZSBmaWxsIGNvbHVtbiBpbmRp Y2F0b3IuICAqLyk7CiAgIFZkaXNwbGF5X2ZpbGxfY29sdW1uX2luZGljYXRvciA9IGZhbHNlOwot LSAKMi4yMy4wLndpbmRvd3MuMQoK --000000000000150ca0059423e795--