From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help 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 Message-ID: <83lgjx6jy1.fsf@gnu.org> References: <87k1zhyivb.fsf@gmail.com> <5f96b32e-de79-4e0d-8ac1-d8c1c35ee8bc@default> <87vaj1z677.fsf@gmail.com> <86mv4dnxa2.fsf@zoho.com> <83r2tp6olw.fsf@gnu.org> 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 1509095101 7281 195.159.176.226 (27 Oct 2017 09:05:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 09:05:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 11:04:52 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1e80ZK-0000JP-92 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 11:04:46 +0200 Original-Received: from localhost ([::1]:56322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e80ZO-0007IE-06 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 05:04:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e80Ys-0007Hs-Ku for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 05:04:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e80Yo-00054J-IU for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 05:04:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e80Yo-00054F-Es for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 05:04:14 -0400 Original-Received: from [176.228.60.248] (port=3113 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e80Yn-00058r-Kh for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 05:04:14 -0400 In-reply-to: (message from Yuri Khan on Fri, 27 Oct 2017 15:33:00 +0700) 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114657 Archived-At: > From: Yuri Khan > Date: Fri, 27 Oct 2017 15:33:00 +0700 > Cc: "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.