unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode
Date: Thu, 5 Oct 2017 15:44:54 -0400	[thread overview]
Message-ID: <CA+OMD9hG1DtZo3HCuYVEZ3wp5KyoocGgGnSO=er-C6HnjUyvfA@mail.gmail.com> (raw)
In-Reply-To: <83h8vdwh7t.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2331 bytes --]

On Thu, Oct 5, 2017 at 3:02 PM, Eli Zaretskii <eliz@gnu.org> 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.
>

​Ok.
​

> ​​
>
> ​​
> 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?

​​
>
> ​​
> > Then linum-mode should be removed (maybe add an alias) so there is no
> confusion as to which mode should
> ​​
> > be used.
> ​​
>
> ​​
> I'm waiting for the pretests and the feedback we get to see if this
> ​​
> can be done.  It's possible that in some rare situations the new mode
> ​​
> will be inconvenient or unable to support.  If no such reports come
> ​​
> in, we will indeed retire linum-mode when Emacs 26.1 is released.
>

​Ok.​

​​
> > 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.  It would
also force a cleanup of the menu item naming so that it was obvious where
each option will display its numbers.

​Bob
​

[-- Attachment #2: Type: text/html, Size: 5658 bytes --]

  reply	other threads:[~2017-10-05 19:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 18:38 Emacs26: Quick thoughts on display-line-numbers-mode Robert Weiner
2017-10-05 18:52 ` Matthew Plant
2017-10-05 19:13   ` Eli Zaretskii
     [not found]     ` <1507232129.15251.12.camel@gmail.com>
2017-10-05 19:50       ` Eli Zaretskii
2017-10-05 20:07         ` Matthew Plant
2017-10-05 23:24         ` Alex
2017-10-06  6:48           ` Eli Zaretskii
2017-10-07 21:12             ` Alex
2017-10-08  7:44               ` Eli Zaretskii
2017-10-09  0:06                 ` Alex
2017-10-05 19:02 ` Eli Zaretskii
2017-10-05 19:44   ` Robert Weiner [this message]
2017-10-05 19:58     ` Eli Zaretskii
2017-10-05 21:34       ` Robert Weiner
2017-10-06  3:09       ` Matthew Plant
2017-10-06  7:26         ` Eli Zaretskii
2017-10-06  7:50           ` Matthew Plant
2017-10-06  8:16             ` Eli Zaretskii
2017-10-06 12:37               ` Stefan Monnier
2017-10-06 13:06                 ` Eli Zaretskii
2017-10-06 13:25                   ` John Wiegley
2017-10-06 14:17                     ` Eli Zaretskii
2017-10-06 18:47                       ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+OMD9hG1DtZo3HCuYVEZ3wp5KyoocGgGnSO=er-C6HnjUyvfA@mail.gmail.com' \
    --to=rsw@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rswgnu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).