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: Thu, 19 Oct 2017 23:09:50 +0300 [thread overview]
Message-ID: <834lquew6p.fsf@gnu.org> (raw)
In-Reply-To: <25a064f1-c267-49f7-a8de-b28baee928ac@default> (message from Drew Adams on Thu, 19 Oct 2017 10:18:25 -0700 (PDT))
> Date: Thu, 19 Oct 2017 10:18:25 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: help-gnu-emacs@gnu.org
>
> If the default value of face `line-number-current-line'
> looked different from that of face `line-number' then
> there would be little need to pose the question of whether
> you can highlight the current line number differently.
This face is by default the same as line-number because of 2 reasons:
. linum-mode did the same
. using a different face makes redisplay slightly slower (because it
disallows some redisplay optimizations)
> To find the face used, I use `list-faces-display' and look
> for either a face name that is a likely candidate
> (`line-number' is pretty obvious, in this case) or a face
> appearance that matches what I see.
There are other places where this doesn't work, e.g. on the mode line.
next prev parent reply other threads:[~2017-10-19 20:09 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 [this message]
[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
[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
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=834lquew6p.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.
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).