From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to let hl-line-mode ignore text with non-default background color? Date: Tue, 09 Jan 2018 05:45:40 +0200 Message-ID: <83d12j7l0b.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1515469449 13378 195.159.176.226 (9 Jan 2018 03:44:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 03:44:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: zhang cc Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 04:44:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYkpS-0002lP-NN for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2018 04:43:58 +0100 Original-Received: from localhost ([::1]:51129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYkrS-0006ki-8K for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 22:46:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYkrM-0006kM-5Z for emacs-devel@gnu.org; Mon, 08 Jan 2018 22:45:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYkrI-000444-5A for emacs-devel@gnu.org; Mon, 08 Jan 2018 22:45:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYkrH-00043n-U5; Mon, 08 Jan 2018 22:45:52 -0500 Original-Received: from [176.228.60.248] (port=4513 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eYkrG-0007lA-Vu; Mon, 08 Jan 2018 22:45:51 -0500 In-reply-to: (message from zhang cc on Tue, 9 Jan 2018 02:25:10 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221743 Archived-At: > From: zhang cc > Date: Tue, 9 Jan 2018 02:25:10 +0000 > > Text with face custom background color or with inverse-video be set. > > These text usually is important ones like TODO in org-mode or matched words in search result. But > hl-line-mode makes them can’t be seen clearly which is annoying. Please show an example of this. I don't see a problem with the default face definitions, at least not with display of search matches. (I've read the stack-overflow question, and I still am not sure what is the problem, since hl-line's background is rather light, and should be very different from any reasonable foreground.) Maybe you use some theme that is a factor here, or maybe your face customizations are involved. IOW, please show a complete recipe for reproducing the problem (it is also advisable to post that with "M-x report-emacs-bug RET", so the issue is recorded by the Emacs issue tracker). Thanks.