From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matthew Plant Newsgroups: gmane.emacs.devel Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode Date: Thu, 05 Oct 2017 11:52:01 -0700 Message-ID: <1507229521.6891.6.camel@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1507230359 31368 195.159.176.226 (5 Oct 2017 19:05:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 19:05:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 21:05:52 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 1e0BSw-000780-MP for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 21:05:50 +0200 Original-Received: from localhost ([::1]:41674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BT2-0001Fn-B2 for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 15:05:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BFd-0002in-4V for emacs-devel@gnu.org; Thu, 05 Oct 2017 14:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0BFc-0008LZ-78 for emacs-devel@gnu.org; Thu, 05 Oct 2017 14:52:05 -0400 Original-Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:43143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0BFc-0008KC-0i for emacs-devel@gnu.org; Thu, 05 Oct 2017 14:52:04 -0400 Original-Received: by mail-pg0-x22a.google.com with SMTP id s184so7049698pgc.0 for ; Thu, 05 Oct 2017 11:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=4pA50mvzC9rZQTu7OzpoQeC80T6lINf0MUHDTqdp+a8=; b=EzH+M4CN1vunEIuFB9D33LtZF2J2YSKkE/aOhB8fT/vhE7C2rklra5B9KIzpQPRiMo yP5igXdvXH4fnX4vFmpgT+PVRCprxAtkc5bn75r+j7X1+7QbB/Ab8oC5NJmu5K7Iix8i 21Mv235zOI0jBw+MyPZ5LEX9Rvql7pmMOe3sPaFYL/4YBZn06YvWVn9v8Rjnp4/k0EnL zhmSUE0uUD++9fYdjC+9luu8S6j6sTdYD0S3YuHRla8Tsx3Uc1YGi2KHgVi3b+VQPTKD +XM3KgY2WmafOSO/hEK/74mfqQR1YnajcEVCg9B/MgneFyOyKd9C4/6AfyhVJn6dsxaX 591g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=4pA50mvzC9rZQTu7OzpoQeC80T6lINf0MUHDTqdp+a8=; b=k3L+hUDGQMA4hJrYnVcG0sZ/O5xe+nZbQozn1Dili69duTxgBdouKuoSeBHN2Bpryl hPwFcVKL1hQWxCMrzH5VUwc8ilFudMNENfF7IKZB6lTLS8dIMs4Q3B85c1svNxbrMDN3 +EYZILiMSpOlxD6CNxQvvJ8U/a6kBXXGP2+vNSsIUEv0zcVjf2A6m4T3d1mAkRPNSpmf r2Q/eUFBqE8pEZqRVHZY5+MfDghU/ArA2tcPEkM1wuqc4AVOT0mpFAC6WxQPsmshHQtw W7VKjptyJED0whLo4ovWWdHwohpgvkNq+ybiVRtA86UlXlK4StJehENN7hGeLpWFvK4c Tghg== X-Gm-Message-State: AHPjjUiojkwTzRHJYJ5iIFeIYc3tuMMPt8UhUrYmb7F3ZpVVy+MMGYxw 5a51GuAf/48f+97DGmkzalLVTupg X-Google-Smtp-Source: AOwi7QBujFVoCsMcTgzTQsJ6FfTHTrX0uiUuqbffECl/Iq0pwV9YXGB6woFQQrOe1oIl5oFO1Tsn7g== X-Received: by 10.84.142.101 with SMTP id 92mr23257563plw.254.1507229522460; Thu, 05 Oct 2017 11:52:02 -0700 (PDT) Original-Received: from Monolith ([2601:647:4e00:bb4b:da0a:30ed:edf:f4e9]) by smtp.googlemail.com with ESMTPSA id h1sm27962940pgp.37.2017.10.05.11.52.01 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 11:52:01 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 3.24.5 (3.24.5-1.fc26) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22a X-Mailman-Approved-At: Thu, 05 Oct 2017 15:03:51 -0400 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:219137 Archived-At: I agree with this, and also think there should be more customization options. Previously with linum I set the background of the fringe to be different from the background of the buffer, so that the line number column was distinct from the rest of the text buffer. It would be great to have this option back, especially as I was excited that the background color would finally reach the bottom of the screen when I was reading the end of a file. I think the two options needed for both of us would perhaps be some sort of format string (perhaps identical to linum mode's) and then some background option. That being said display-line-numbers-mode effectively saved my desktop experience. I have a 4k display so I will often have four windows of the same file open vertically. I was recently doing this with a file that is about 2k lines and inputting characters was causing so much slow down that emacs was near unusable. Of course, profiling indicated and action confirmed that linum mode was to blame. Additionally with this change I can finally get rid of the fringe, which makes resizing via mouse much easier. On Thu, 2017-10-05 at 14:38 -0400, Robert Weiner wrote: > I took a quick look at display-line-numbers-mode (nice work as > always) and had a few thoughts: > > 1. The similar linum-mode when possible displays a subtle vertical > separator between the line numbers and the left margin of the text > area. This helps to visually parse the numbers as separate from the > text and helps identify where the first text character is. It would > be good to have something similar at least as an option. > > Then linum-mode should be removed (maybe add an alias) so there is no > confusion as to which mode should be used. > > 2. The mode-line popup menu that displays/hides line and col numbers > in the mode=line could be expanded to toggle this mode on and off > locally and globally, as well as providing options for its various > display settings: relative, visual and absolute. > > Bob > > >