branch: externals/lin commit 96a61754c80062b77e39cb362c19e7cfcf909cf7 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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)))