From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird 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 10:15:56 +0800 Message-ID: <87vaj1z677.fsf@gmail.com> References: <87k1zhyivb.fsf@gmail.com> <5f96b32e-de79-4e0d-8ac1-d8c1c35ee8bc@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1509070614 11356 195.159.176.226 (27 Oct 2017 02:16:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 02:16:54 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 04:16:49 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 1e7uCP-0001UR-UM for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 04:16:42 +0200 Original-Received: from localhost ([::1]:55450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7uCV-0005k5-QI for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 22:16:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7uBm-0005ir-7o for help-gnu-emacs@gnu.org; Thu, 26 Oct 2017 22:16:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7uBl-0000eh-2z for help-gnu-emacs@gnu.org; Thu, 26 Oct 2017 22:16:02 -0400 Original-Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:53273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7uBk-0000d0-Ty for help-gnu-emacs@gnu.org; Thu, 26 Oct 2017 22:16:01 -0400 Original-Received: by mail-pg0-x235.google.com with SMTP id s2so4127756pge.10 for ; Thu, 26 Oct 2017 19:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:user-agent:in-reply-to:date :message-id:mime-version; bh=LGBGNyz6UkglMVgSBYULAlZak/DJvtOdKVZ6ojR/uyA=; b=cTzZuYLQsXgWByBH8BfVIR8y/2/jYOee2CxG8AX5gmc8yiDdsan6gQJ7fePTlwcTzl eN2s3Jtr1AdU/4YicBmjYSLjtL1YCjedlfiwVUzegbAXwjERfi9fZNxOL0Xb+loZr3Ia a+Lj0L6SA+zuhZ8kR0fgYNH1DD5qfxffBGyVakWDon6VXN003Ha/4zZVULCMoja/gZVC AolzS5y/BmQ7PFqyocMGJ9P+v5pe4CJiKRC31o2kpVAjwIh1zs9xOhFBOOmIuFQoxX22 lewor2/N3xUglR1qIEL+uVShVPExBMmptTttyWN0cks7BYG1+yfsH4Uk6fTHbm3zmGGT 7taw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:user-agent :in-reply-to:date:message-id:mime-version; bh=LGBGNyz6UkglMVgSBYULAlZak/DJvtOdKVZ6ojR/uyA=; b=afYpFtWQeYkgeuLpVtQxfMl3Z1+TB846Vef9G8Q4HWWe1xWEbbEwfOpKEa0EJzfAsz 9jAjaczj+/ieLGDAnxeR7kQKacQCKRdQPjScN2U6+2y8sipE+Cua4oS2U3NYQH5dWRZZ J32bPD0jz4p/8VonU3wTwqIa3R/XV3Q1T2IG/YtML8t0JOLHLDiMWRh/EdVvenjDgKxA IW0FXbVPJHigxjUnKftLmn60rxOKhTNu9VaRIQ3Mu7VHhk4lL8F5FqIKI8NjyN3+WHgc lr/G1KAmOWgpCbw5+WYxzTsM0TjiEOIMT8SXY6xuFVd3GCi/rKNwIEiX9h88gx0JdUNF qRjg== X-Gm-Message-State: AMCzsaVeNa3qkh8OgThrzaj6uQP1v1Di2ai0VgAgNvT/O/ronVYJjYZ1 lDMIGvFl+9Ag9x9z3p7V6eM= X-Google-Smtp-Source: ABhQp+RLzQ25mY0bpB4Go/l4oUmgNLi8TORfTxIkNwfUMDR0M9a6WnmKMi086WwYNOEvycjpS3JvHg== X-Received: by 10.101.78.5 with SMTP id r5mr6509446pgt.94.1509070559916; Thu, 26 Oct 2017 19:15:59 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id 85sm11848291pfz.119.2017.10.26.19.15.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Oct 2017 19:15:59 -0700 (PDT) In-reply-to: <5f96b32e-de79-4e0d-8ac1-d8c1c35ee8bc@default> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::235 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:114648 Archived-At: Hi, Can we just rewrite rainbow-mode to use overlay instead? Is that a reason that it doesn't do so? regards, Drew Adams writes: >> How can I make hl-line mode not override the color of >> rainbow-mode? >> >> https://urldefense.proofpoint.com/v2/url?u=https- >> 3A__i.stack.imgur.com_fh11k.png&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5Y >> TpkKY057SbK10&r=qZLZosY6GBAaJtOG9v8QX7nD4BS9t9s5otgxC3d4IFU&m=0cysGUafKkn >> 05ieu20oYLMZxbhi3LmzWz2B2DcaeCgY&s=IUgAkHZTo4jnGih15NlP4kUZj-kXymJcX- >> KgBbBlIbA&e= >> >> Is there an non-intrusive way to do this? > > https://emacs.stackexchange.com/a/23965/105 > > `rainbow-mode' uses text properties to highlight. > `hl-line-mode' uses an overlay to highlight. > Overlay highlighting overrides text-property highlighting. -- Amos Bird amosbird@gmail.com