[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)))
- [elpa] externals/lin 5ee05ac998 43/46: Fix bug in alias caused by typo, (continued)
- [elpa] externals/lin 5ee05ac998 43/46: Fix bug in alias caused by typo, ELPA Syncer, 2022/04/07
- [elpa] externals/lin deacbddf05 32/46: Refine lin-face custom setter (extends 13aa36b), ELPA Syncer, 2022/04/07
- [elpa] externals/lin 87f572ad10 05/46: Rename faces; update their docs, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 6cd9348e06 07/46: Prepare manual and add relevant files, ELPA Syncer, 2022/04/07
- [elpa] externals/lin b094ebe589 17/46: Merge branch 'ctietze-main-patch-35663' into 'main', ELPA Syncer, 2022/04/07
- [elpa] externals/lin 75f98524ec 29/46: Add bongo to lin-mode-hooks, ELPA Syncer, 2022/04/07
- [elpa] externals/lin ea174a53f2 36/46: Format the Commentary a bit better, ELPA Syncer, 2022/04/07
- [elpa] externals/lin fef282ebbb 44/46: Improve how lin--setup resets hooks, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 81c256632b 14/46: Update manual's Acknowledgements, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 6da81a4a70 23/46: Minor rewording of heading, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 96a61754c8 19/46: Account for the case of hl-line-face,
ELPA Syncer <=
- [elpa] externals/lin 4616650344 24/46: Added mu4e-headers-mode to lin-foreign-hooks, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 3c1df2c174 38/46: Fix stable version, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 07f40bd5e9 35/46: Add minor-mode lighter, ELPA Syncer, 2022/04/07
- [elpa] externals/lin fb32511d20 08/46: Add Acknowledgements to the manual, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 8aa367ec86 13/46: Merge branch 'various' into 'main', ELPA Syncer, 2022/04/07
- [elpa] externals/lin e5a0da969e 20/46: Add function lin-add-to-many-modes and option lin-foreign-hooks (#3), ELPA Syncer, 2022/04/07
- [elpa] externals/lin a85b9da0d1 21/46: Merge branch 'lin-add-to-many-modes' into 'main', ELPA Syncer, 2022/04/07
- [elpa] externals/lin 69321c759a 22/46: Update manual's Acknowledgements, ELPA Syncer, 2022/04/07
- [elpa] externals/lin 307c19f2e3 27/46: Remove needless 'when', ELPA Syncer, 2022/04/07
- [elpa] externals/lin ea1275a282 02/46: Fix typo, ELPA Syncer, 2022/04/07