From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I make hl-line mode not override the color of rainbow-mode?
Date: Fri, 27 Oct 2017 12:04:06 +0300 [thread overview]
Message-ID: <83lgjx6jy1.fsf@gnu.org> (raw)
In-Reply-To: <CAP_d_8Wg3UoidogN+RpdLswVw=W3YG48JFkSCS9sz5CihHeK=Q@mail.gmail.com> (message from Yuri Khan on Fri, 27 Oct 2017 15:33:00 +0700)
> From: Yuri Khan <yuri.v.khan@gmail.com>
> Date: Fri, 27 Oct 2017 15:33:00 +0700
> Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
>
> > This could be alleviated by using less intrusive face attributes for
> > the hl-line face. For example, one could use underline, or
> > bold/slant, or box, or something else that doesn't override the
> > colors, while still making the current line stand out on display.
>
> The idea of hl-line is not to make the current line “stand out” as
> such. It is a delicate balance of several desirable properties:
>
> 1. The current line needs to be immediately noticeable.
> a. Even if it contains no characters or contains only whitespace.
> 2. The current line should not be too distracting.
> a. In particular, it must not cause glyphs shifting when point moves.
> 3. The current line is secondary to any characteristics of the text in
> the buffer.
Not everyone has all of these requirements for hl-line, and I think at
least some of my proposals do fit them, even though you didn't like
them (which is okay, but personal preferences do matter here).
IOW, this is an optional feature, used for different reasons. There
are no absolutely correct and absolutely incorrect opinions here. The
purpose of my message was to point out a few non-default alternatives
which could improve the quality of life for some of those who read
this list. I understand and accept that some of the readers could
reject my proposals, per their personal preferences, but that doesn't
mean they should be rejected outright or considered invalid.
As for this:
> I wish there was a way to make overlays interact better with text
> properties.
If you have specific ideas for how to accomplish this, feel free to
describe them (on emacs-devel, preferably), maybe we can do something
about this. The basic issue here is how to deal with the situation
where two different sources specify the background color of the same
buffer position. Emacs currently selects one of those 2 sources by
using a priority scheme.
prev parent reply other threads:[~2017-10-27 9:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-26 16:27 How can I make hl-line mode not override the color of rainbow-mode? Amos Bird
2017-10-26 21:54 ` Emanuel Berg
2017-10-26 23:10 ` Drew Adams
2017-10-27 2:15 ` Amos Bird
2017-10-27 2:24 ` Emanuel Berg
2017-10-27 3:22 ` Amos Bird
2017-10-27 5:02 ` Yuri Khan
2017-10-27 5:39 ` Emanuel Berg
2017-10-27 7:23 ` Eli Zaretskii
2017-10-27 8:33 ` Yuri Khan
2017-10-27 9:04 ` Eli Zaretskii [this message]
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=83lgjx6jy1.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).