unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Plant <maplant95@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode
Date: Thu, 05 Oct 2017 13:07:37 -0700	[thread overview]
Message-ID: <1507234057.15251.23.camel@gmail.com> (raw)
In-Reply-To: <83efqhwezk.fsf@gnu.org>

On Thu, 2017-10-05 at 22:50 +0300, Eli Zaretskii wrote:
> > From: Matthew Plant <maplant95@gmail.com>
> > Date: Thu, 05 Oct 2017 12:35:29 -0700
> > 
> > My apologies, I did not notice that line-number face existed
> > because it
> > is not part of the display line numbers group. This does exactly
> > what I
> > want.
> > 
> > That being said, shouldn't this face be part of the group display-
> > line-
> > number? Faces for compilation errors are part of the the
> > compilation
> > group. 
> 
> My reasoning was that this is one of the basic faces we provide, so
> it's in the basic faces group.
> 
Hmm... Ok.

> > Being able to specify which side the line numbers appear I imagine
> > would be useful for editing right to left languages.
> 
> When the paragraph direction is right-to-left, the numbers
> automatically appear on the right.  You should be able to see that if
> you visit TUTORIAL.he with display-line-numbers-mode turned on.
> 
> > That being said I can't find one editor that supports this feature
> 
> Well, Emacs does ;-)
> 

I was silently wondering if this was the case. Oops, my bad.

> > You said in a separate reply that separation between the numbers
> > and
> > the text is kept with a white-space glyph. Why not just let this be
> > a
> > buffer or mode local string specified by the user?
> 
> There's a technical problem with doing that, which I couldn't solve.
> It would also slow down redisplay, while performance was high on my
> priority list when working on this feature.

If you can elaborate on the technical problem I can give it a look.
If the glyph is limited to one character and is properly cached I don't
see why this would be a specificaly worrisome performance hit. I can
see it being an issue if the glyph is changed a lot, but I don't think
this is a common use case.

I'm making some assumptions about the display code, I'll take a look at
the implementation.



  reply	other threads:[~2017-10-05 20:07 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 [this message]
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
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=1507234057.15251.23.camel@gmail.com \
    --to=maplant95@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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).