GNU bug report logs - #30083
26.0.90; Let hl-line ignore text with non-default backgrond color

Previous Next

Package: emacs;

Reported by: zhang cc <ccsmile2008 <at> outlook.com>

Date: Fri, 12 Jan 2018 02:43:01 UTC

Severity: wishlist

Found in version 26.0.90

To reply to this bug, email your comments to 30083 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30083; Package emacs. (Fri, 12 Jan 2018 02:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to zhang cc <ccsmile2008 <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 12 Jan 2018 02:43:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zhang cc <ccsmile2008 <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.0.90; Let hl-line ignore text with non-default backgrond color
Date: Fri, 12 Jan 2018 02:39:52 +0000
[Message part 1 (text/plain, inline)]
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.


[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30083; Package emacs. (Fri, 12 Jan 2018 03:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 30083 <at> debbugs.gnu.org (full text, mbox):

From: zhang cc <ccsmile2008 <at> outlook.com>
To: "30083 <at> debbugs.gnu.org" <30083 <at> debbugs.gnu.org>
Subject: 26.0.90; Let hl-line ignore text with non-default backgrond color
Date: Fri, 12 Jan 2018 03:29:47 +0000
[Message part 1 (text/plain, inline)]
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?

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30083; Package emacs. (Fri, 12 Jan 2018 09:18:01 GMT) Full text and rfc822 format available.

Message #11 received at 30083 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: zhang cc <ccsmile2008 <at> outlook.com>
Cc: 30083 <at> debbugs.gnu.org
Subject: Re: bug#30083: 26.0.90;
 Let hl-line ignore text with non-default backgrond color
Date: Fri, 12 Jan 2018 11:16:41 +0200
> From: zhang cc <ccsmile2008 <at> 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.




This bug report was last modified 7 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.