unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30083: 26.0.90; Let hl-line ignore text with non-default backgrond color
@ 2018-01-12  2:39 zhang cc
  2018-01-12  3:29 ` zhang cc
  0 siblings, 1 reply; 3+ messages in thread
From: zhang cc @ 2018-01-12  2:39 UTC (permalink / raw)
  To: 30083

[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]

hl-line mode adds an overlay face to text of the current line.
The hl-line usually only replace the background color of the text to
another color which is similar to default background color with small
diffrence.
It works well for text with default background color, but not for text
with non-default color. The latter usually is highlight faces like face
for TODO in org-mode, matched items in search results. They have
reversed fg/bg colors with default face. Their background colors
are similar with foreground color of default face. Their foreground
colors are similar with background color of default face and background
color of hl-line. Then if hl-line changes background color, then their
foreground and background colors are too similar and make the text hardly
be seen.
Text with these faces are important to user. But hl-lime dim them and
even makes them can't be seen. If hl-line ignores these text(with
non-default background), then it will be good.

Tried with 'distant color' for hl-line face, and it didn't work well for
many colors. Even if it works well, it is not perfect solution for this
problem.



[-- Attachment #2: Type: text/html, Size: 1829 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#30083: 26.0.90; Let hl-line ignore text with non-default backgrond color
  2018-01-12  2:39 bug#30083: 26.0.90; Let hl-line ignore text with non-default backgrond color zhang cc
@ 2018-01-12  3:29 ` zhang cc
  2018-01-12  9:16   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: zhang cc @ 2018-01-12  3:29 UTC (permalink / raw)
  To: 30083@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

I changed the affected faces to use inverse-video, then hl-line only modified the foreground color of the text, which is better than before.
What is the purpose of inverse-video? When it should be used?


[-- Attachment #2: Type: text/html, Size: 672 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#30083: 26.0.90; Let hl-line ignore text with non-default backgrond color
  2018-01-12  3:29 ` zhang cc
@ 2018-01-12  9:16   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2018-01-12  9:16 UTC (permalink / raw)
  To: zhang cc; +Cc: 30083

> From: zhang cc <ccsmile2008@outlook.com>
> Date: Fri, 12 Jan 2018 03:29:47 +0000
> 
> What is the purpose of inverse-video? When it should be used?

It should be used for stuff like mode line, which needs to have text
stand out without specifying specific colors.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-12  9:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-12  2:39 bug#30083: 26.0.90; Let hl-line ignore text with non-default backgrond color zhang cc
2018-01-12  3:29 ` zhang cc
2018-01-12  9:16   ` Eli Zaretskii

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).