all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: zhang cc <ccsmile2008@outlook.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to let hl-line-mode ignore text with non-default background color?
Date: Wed, 10 Jan 2018 17:38:02 +0200	[thread overview]
Message-ID: <83d12h67xh.fsf@gnu.org> (raw)
In-Reply-To: <SG2PR0601MB14050EF4806BE97A84E6447AA8110@SG2PR0601MB1405.apcprd06.prod.outlook.com> (message from zhang cc on Wed, 10 Jan 2018 09:23:46 +0000)

> From: zhang cc <ccsmile2008@outlook.com>
> CC: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
> Date: Wed, 10 Jan 2018 09:23:46 +0000
> 
> On 10 Jan 2018, 3:12 AM +0800, Eli Zaretskii <eliz@gnu.org>, wrote: 
> 
>  If you must set the foreground of the text the same as the background
>  of the hl-line face, then customize the hl-line face to define the
>  "distant foreground" color for it. E.g., I defined the "distant
>  foreground" to be black, and the problem went away. 
> 
> Tried with some colors. It didn’t always work well. For example, in the following picture, the left is the test
> code, the right is the details of the face hl-line, the highlighted one line in the left window is the result.

That's because you've chosen the distant foreground poorly.

Look, you can always shoot yourself in the foot if you intentionally
arrange your colors to produce bad contrast.  That doesn't prove
anything, certainly not that there's a bug or a missing feature.  If
you play with colors, you need to choose them carefully, that's all.



  reply	other threads:[~2018-01-10 15:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-09  2:25 How to let hl-line-mode ignore text with non-default background color? zhang cc
2018-01-09  3:45 ` Eli Zaretskii
2018-01-09  6:21   ` zhang cc
2018-01-09 19:12     ` Eli Zaretskii
2018-01-10  9:23       ` zhang cc
2018-01-10 15:38         ` Eli Zaretskii [this message]
2018-01-11  0:29           ` zhang cc
     [not found] <3d53b7ae-a4cf-4405-8669-706781bb4889@Spark>
2018-01-09  2:42 ` zhang cc

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=83d12h67xh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=ccsmile2008@outlook.com \
    --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 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.