emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/lin 96a61754c8 19/46: Account for the case of hl-line-f


From: ELPA Syncer
Subject: [elpa] externals/lin 96a61754c8 19/46: Account for the case of hl-line-face
Date: Thu, 7 Apr 2022 23:57:45 -0400 (EDT)

branch: externals/lin
commit 96a61754c80062b77e39cb362c19e7cfcf909cf7
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Account for the case of hl-line-face
---
 lin.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lin.el b/lin.el
index 0f3f90a801..56b5a070db 100644
--- a/lin.el
+++ b/lin.el
@@ -102,11 +102,17 @@ Used only when `lin-override-foreground' is non-nil."
 (defvar-local lin--cookie nil
   "Cookie returned by `face-remap-add-relative'.")
 
+(defvar hl-line-face)
+
 (defun lin--source-face ()
   "Determine the source face, what to remap."
   (cond
    ((derived-mode-p 'mu4e-headers-mode)
     'mu4e-header-highlight-face)
+   ;; Do not target `hl-line' directly, as it can be changed by
+   ;; `hl-line-face'.
+   ((when (bound-and-true-p hl-line-face)
+      hl-line-face))
    (t
     'hl-line)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]