From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode Date: Thu, 05 Oct 2017 22:58:08 +0300 Message-ID: <83d161wenj.fsf@gnu.org> References: <83h8vdwh7t.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1507233544 14827 195.159.176.226 (5 Oct 2017 19:59:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 19:59:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: rswgnu@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 21:58:59 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 1e0CIK-0002UP-8j for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 21:58:56 +0200 Original-Received: from localhost ([::1]:41844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CIO-0001rF-KQ for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 15:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CHn-0001r3-TW for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:58:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0CHj-0004Uj-45 for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:58:24 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0CHj-0004UU-0d; Thu, 05 Oct 2017 15:58:19 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3784 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e0CHi-0006Hm-FU; Thu, 05 Oct 2017 15:58:18 -0400 In-reply-to: (message from Robert Weiner on Thu, 5 Oct 2017 15:44:54 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:219143 Archived-At: > From: Robert Weiner > Date: Thu, 5 Oct 2017 15:44:54 -0400 > Cc: emacs-devel > > ​​Separation between the numbers and the text is still kept, by means of > ​​a white-space glyph. > > ​So could you add a customization option for this glyph that would provide some visual separation, e.g. a > hairline or something similar to the visual linum-mode provides? There's a technical problem with doing that, for which I didn't have a solution at the time and still don't. Such an option would also slow redisplay, albeit in minor ways. > ​​> 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. > ​​ > ​​I'm not sure I agree. The mode-line menu is for displays on the mode > ​​line. The display-line-numbers-mode and its variants can be turned on > ​​or off from the menu bar's Options menu. > > ​I see your point but do think in practice a lot of people would look to the mode-line menu if they could. Also, > having all the options in one place would let people decide which to use at any given point without hunting > around. I know I look at mode-lines a lot more than the menubar. Well, currently the mode line offers customization only of the stuff that is displayed on the mode line, so I'm not sure why people would look there or something else. > It would also force a cleanup of the menu item > naming so that it was obvious where each option will display its numbers. Not sure I understand: the Options menu has Hide/Show sub-menu, which is where we put all the toggle-type options. Line-number display is one of them. So it looks like the current arrangement is consistent with how we provide similar customizations.