From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan 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:02:34 +0700 Message-ID: References: <87k1zhyivb.fsf@gmail.com> <5f96b32e-de79-4e0d-8ac1-d8c1c35ee8bc@default> <87vaj1z677.fsf@gmail.com> <86mv4dnxa2.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509080607 31564 195.159.176.226 (27 Oct 2017 05:03:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 05:03:27 +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 07:03:23 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 1e7wnb-0007BX-Eh for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 07:03:15 +0200 Original-Received: from localhost ([::1]:55748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7wni-0006F4-Py for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 01:03:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7wnJ-0006Ey-Ep for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 01:02:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7wnI-0004Ir-FX for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 01:02:57 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:43927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7wnI-0004IA-AQ for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 01:02:56 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id c77so9244210oig.0 for ; Thu, 26 Oct 2017 22:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-transfer-encoding; bh=B6cHjg3G775E+md1yGentSF7t2YKN8XqAEAlxEjMl20=; b=ghNGox+QX6nPuIxtSQpEaq2afbE4dB41UEV2zl83nRB2zSiVwzi31y58VZKYdVWUH+ upZDUo2Q+i8s+mHOupC6ckIjW/2TYRQay+28ZZzhmg2KYRQ2S17GoUQiRhUWJqqBx4AJ cMZn/Xg0VAaS2RdpNwlQ2Md584nS785TLrTyNbb1OtCAGDDT8bYiXPJpCgU3BTttigep X8Ck4mqJvrRnXftNPxmGKHTagFV+rIPxArOE1Jg6aqzlOW1nO5rmtORanS+PZBvWkHHk KraKWb2ucU40Af0kveY2IpMXfMFD5KqqypQvbfO71Gg84NO4meQBfyC4XZ2L7hfqAd1K IY9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=B6cHjg3G775E+md1yGentSF7t2YKN8XqAEAlxEjMl20=; b=PRJTJ3rHuBB+fnWatWzvCH54hSY+txfhsdxjHzQqbV3YJoinmVeOe3hdaCsyPA7IVn 5gpaif95anYVDtGZ1Xk2yB2DdOhbu7P3lhg1O+hgk/JRyxQ5ouYHCRHa/OBIMdC9vZY6 k+1nCY2CvGLaYNFuP6tKvewOZpNPQ5fSitZFMEEW3LaGNqElhzPnWHUmZ4pDfh3c6mSb Yr+Q7GiXsxEouHnx9L2ar/DTip1DQf6l9abKqNAsTIq6cbCvImAACjP9Hpisl14awo/h Dtjc1Y7RgejjfpPqxW7AP+/aAAQsOX8jrQmEAwFHLgY+A6n2HLlNwsIC+mW6xIsetsZK SC3A== X-Gm-Message-State: AMCzsaWrHrgrPGOwh0G5YPlUFYjMsjBNaxLHryZ3p8LVBCgkVoOt3/1S iX44WmM3/Qbe4FiYKUlfwXSF51RU7Jp5qfr8hhE= X-Google-Smtp-Source: ABhQp+T3/u/+1kiELGmpyHMZoZwVlp6V99mrBO58YcCNL6clh9loCnwhqIVahCKWqf1bbCb/VjhBcD5IiIrITN+3xSc= X-Received: by 10.202.69.5 with SMTP id s5mr3546705oia.269.1509080574807; Thu, 26 Oct 2017 22:02:54 -0700 (PDT) Original-Received: by 10.74.118.21 with HTTP; Thu, 26 Oct 2017 22:02:34 -0700 (PDT) In-Reply-To: <86mv4dnxa2.fsf@zoho.com> X-Google-Sender-Auth: fGEs5fBPlqNT1rzXl_dVtKs9SoA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22e 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:114653 Archived-At: On Fri, Oct 27, 2017 at 9:24 AM, Emanuel Berg wrote: > Amos Bird wrote: > >> Hi, Can we just rewrite rainbow-mode to use >> overlay instead? Is that a reason that it >> doesn't do so? > > Don't you think you are going overboard with > this cosmetic detail which only appears in > rare combinations? It may be a rare combination for you, because you are using Emacs on a Linux console that only supports a few colors and therefore it doesn=E2=80= =99t make much sense to use background color for highlighting. It may be a rare combination overall, counting all users of Emacs together. But, for a user who likes seeing the current line highlighted at all times and also wants to highlight CSS colors, it=E2=80=99s going to be pret= ty frequent. (I wish there was a way to make overlays interact better with text properties. hl-line takes precedence over pretty much any background color highlighting, including but not limited to hi-lock, rainbow-mode and Magit branch and tag decorations. The intuitive expectation, for hl-line, would be that it should override background color only if it comes directly or indirectly from the default face.)