From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode Date: Thu, 5 Oct 2017 15:44:54 -0400 Message-ID: References: <83h8vdwh7t.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0578203090cc055ad1f7bc" X-Trace: blaine.gmane.org 1507232765 14623 195.159.176.226 (5 Oct 2017 19:46:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 19:46:05 +0000 (UTC) Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 21:46:01 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 1e0C5n-00038K-S4 for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 21:46:00 +0200 Original-Received: from localhost ([::1]:41812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0C5t-0007B3-Jk for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 15:46:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0C5J-0007AW-UA for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:45:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0C5G-0005uE-LG for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:45:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0C5G-0005u0-DJ for emacs-devel@gnu.org; Thu, 05 Oct 2017 15:45:26 -0400 Original-Received: from mail-qk0-f173.google.com ([209.85.220.173]:48864) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e0C5F-000323-Ut; Thu, 05 Oct 2017 15:45:26 -0400 Original-Received: by mail-qk0-f173.google.com with SMTP id d67so12468997qkg.5; Thu, 05 Oct 2017 12:45:25 -0700 (PDT) X-Gm-Message-State: AMCzsaVap6AZmJViprwGHAMlGbYYlFo3X9gqOz5oAPvB6j8+o/wO1p2P ypBmTqDvgc3WUAom+WmOBRmjycD6ZwR0bCqXt7Y= X-Google-Smtp-Source: AOwi7QBV8qvAf50n+KuS9p4rA+Y73crIkhOyFOhK6pjDOcjaxwwe3R6hHFUcDC7G4tRy8vjec3/Mi5GJ2nD0iVaE10A= X-Received: by 10.55.103.138 with SMTP id b132mr13584773qkc.50.1507232725371; Thu, 05 Oct 2017 12:45:25 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Thu, 5 Oct 2017 12:44:54 -0700 (PDT) In-Reply-To: <83h8vdwh7t.fsf@gnu.org> X-Gmail-Original-Message-ID: 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:219140 Archived-At: --94eb2c0578203090cc055ad1f7bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 5, 2017 at 3:02 PM, Eli Zaretskii wrote: > > linum-mode displays line numbers in the left display margin. I think > usurping the display margins for a display-related feature as popular > as line numbers is a bad idea, because it clashes with other > specialized features which want to use the margins, so I explicitly > coded the native line-number display not to do that. Therefore, I > will object to having this new display on the display margins, even as > an option. > =E2=80=8BOk. =E2=80=8B > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > Separation between the numbers and the text is still kept, by means of > =E2=80=8B=E2=80=8B > a white-space glyph. > =E2=80=8BSo 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? =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > > Then linum-mode should be removed (maybe add an alias) so there is no > confusion as to which mode should > =E2=80=8B=E2=80=8B > > be used. > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > I'm waiting for the pretests and the feedback we get to see if this > =E2=80=8B=E2=80=8B > can be done. It's possible that in some rare situations the new mode > =E2=80=8B=E2=80=8B > will be inconvenient or unable to support. If no such reports come > =E2=80=8B=E2=80=8B > in, we will indeed retire linum-mode when Emacs 26.1 is released. > =E2=80=8BOk.=E2=80=8B =E2=80=8B=E2=80=8B > > 2. The mode-line popup menu that displays/hides line and col numbers in > the mode=3Dline could be expanded to > =E2=80=8B=E2=80=8B > > toggle this mode on and off locally and globally, as well as providing > options for its various display settings: > =E2=80=8B=E2=80=8B > > relative, visual and absolute. > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > I'm not sure I agree. The mode-line menu is for displays on the mode > =E2=80=8B=E2=80=8B > line. The display-line-numbers-mode and its variants can be turned on > =E2=80=8B=E2=80=8B > or off from the menu bar's Options menu. > =E2=80=8B 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. It would also force a cleanup of the menu item naming so that it was obvious where each option will display its numbers. =E2=80=8BBob =E2=80=8B --94eb2c0578203090cc055ad1f7bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 5, 20= 17 at 3:02 PM, Eli Zaretskii <eli= z@gnu.org> wrote= :

linum-mode displays line numbers in the left display margin.=C2=A0 I= think
usurping the display margins for a display-related feature as popular
as line numbers is a bad idea, because it clashes with other
specialized features which want to use the margins, so I explicitly
coded the native line-number display not to do that.=C2=A0 Therefore, I
will object to having this new display on the display margins, even as
an option.

=E2=80=8BOk.
=E2=80=8B
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
Separation between the numbers and the t= ext is still kept, by means of
=E2=80=8B=E2=80=8B
a white-space glyph.

=E2=80=8BSo could you add a customization option for this glyph tha= t would provide some visual separation, e.g. a hairline or something simila= r to the visual linum-mode provides?

=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
> Then linum-mode should be removed (= maybe add an alias) so there is no confusion as to which mode should
=E2=80=8B=E2=80=8B
> be used.
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
I'm waiting for the pretests = and the feedback we get to see if this
=E2=80=8B=E2=80=8B
can be done.=C2=A0 It's possible tha= t in some rare situations the new mode
=E2=80=8B=E2=80=8B
will be inconvenient or unable to suppor= t.=C2=A0 If no such reports come
=E2=80=8B=E2=80=8B
in, we will indeed retire linum-mode whe= n Emacs 26.1 is released.

=E2=80=8BOk.=E2=80=8B<= /div>

=E2=80=8B=E2=80=8B
> 2. The mode-line p= opup menu that displays/hides line and col numbers in the mode=3Dline could= be expanded to
=E2=80=8B=E2=80=8B
> toggle this mode on and off locally= and globally, as well as providing options for its various display setting= s:
=E2=80=8B=E2=80=8B
> relative, visual and absolute.
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
I'm not sure I agree.=C2=A0 T= he mode-line menu is for displays on the mode
=E2=80=8B=E2=80=8B
line.=C2=A0 The display-line-numbers-mod= e and its variants can be turned on
=E2=80=8B=E2=80=8B
or off from the menu bar's Options m= enu.
=E2=80=8B
I see your point but do think in practice a lot of people would look to th= e mode-line menu if they could.=C2=A0 Also, having all the options in one p= lace would let people decide which to use at any given point without huntin= g around.=C2=A0 I know I look at mode-lines a lot more than the menubar.=C2= =A0 It would also force a cleanup of the menu item naming so that it was ob= vious where each option will display its numbers.

=E2=80=8BBob
=E2=80=8B

--94eb2c0578203090cc055ad1f7bc--