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

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

[elpa] externals/embark 07124c7: Give of zebra stripe lower priority tha


From: ELPA Syncer
Subject: [elpa] externals/embark 07124c7: Give of zebra stripe lower priority than overlay for hl-line-mode
Date: Thu, 2 Dec 2021 16:57:15 -0500 (EST)

branch: externals/embark
commit 07124c7c66c61dd28f55be301573cf30a22a5fac
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    Give of zebra stripe lower priority than overlay for hl-line-mode
    
    Thanks to @protesilaos for reporting this and providing a patch (which
    is slightly different to this change, only for cosmetic reasons).
---
 embark.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/embark.el b/embark.el
index 4c87656..d029b16 100644
--- a/embark.el
+++ b/embark.el
@@ -2510,8 +2510,9 @@ determine the width."
             (condition-case nil
                 (forward-button columns)
               (user-error (goto-char (point-max))))
-            (overlay-put (make-overlay pt (point))
-                         'face 'embark-collect-zebra-highlight)))))))
+            (let ((stripe (make-overlay pt (point))))
+              (overlay-put stripe 'priority -100) ; below hl-line-mode's -50
+              (overlay-put stripe 'face 'embark-collect-zebra-highlight))))))))
 
 (define-minor-mode embark-collect-zebra-minor-mode
   "Minor mode to highlight alternate rows in an Embark Collect buffer.



reply via email to

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