all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs pretest: highlight line number in display-line-numbers-mode?
Date: Fri, 20 Oct 2017 17:49:25 +0300	[thread overview]
Message-ID: <83h8utdgcq.fsf@gnu.org> (raw)
In-Reply-To: <87mv4mexpo.fsf@gmail.com> (message from Robert Pluim on Fri, 20 Oct 2017 15:49:07 +0200)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Fri, 20 Oct 2017 15:49:07 +0200
> 
> nlinum-mode has an option to highlight the current line, disabled by
> default

So does display-line-numbers-mode, by way of the
line-number-current-line face.  Or am I missing something?

> I'd vote for having the current line face have a background colour
> set.

By default?  Why do you need it by default?  What's wrong with lettng
users customize that as they see fit?

> Calculating line numbers is going to slow things down anyway

It doesn't.  I measured it.  And there's no reason why it should slow
down, because the line numbers are computed on the fly, as the lines
are laid out for display.



  reply	other threads:[~2017-10-20 14:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-19 15:19 Emacs pretest: highlight line number in display-line-numbers-mode? Sivaram Neelakantan
2017-10-19 15:37 ` Robert Pluim
2017-10-19 17:18   ` Drew Adams
2017-10-19 20:09     ` Eli Zaretskii
     [not found]     ` <<834lquew6p.fsf@gnu.org>
2017-10-19 20:43       ` Drew Adams
2017-10-20  6:34         ` Eli Zaretskii
2017-10-20 13:49           ` Robert Pluim
2017-10-20 14:49             ` Eli Zaretskii [this message]
     [not found]           ` <<87mv4mexpo.fsf@gmail.com>
     [not found]             ` <<83h8utdgcq.fsf@gnu.org>
2017-10-20 15:18               ` Drew Adams
2017-10-20 15:42                 ` Eli Zaretskii
     [not found]         ` <<83376ee39c.fsf@gnu.org>
2017-10-20 15:18           ` Drew Adams
2017-10-20 15:52             ` Eli Zaretskii
     [not found] <<krpqx3tvyv413v.fsf@gmail.com>
     [not found] <<<krpqx3tvyv413v.fsf@gmail.com>

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

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

  git send-email \
    --in-reply-to=83h8utdgcq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.