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

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

[nongnu] elpa/highlight-parentheses 72283a2 45/49: Add highlight-parenth


From: ELPA Syncer
Subject: [nongnu] elpa/highlight-parentheses 72283a2 45/49: Add highlight-parentheses property to our overlays
Date: Sun, 15 Aug 2021 03:57:50 -0400 (EDT)

branch: elpa/highlight-parentheses
commit 72283a28d81d77149c9ff14fd1f16a6e2e3d991b
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    Add highlight-parentheses property to our overlays
---
 highlight-parentheses.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/highlight-parentheses.el b/highlight-parentheses.el
index 22b44d9..afbb2d9 100644
--- a/highlight-parentheses.el
+++ b/highlight-parentheses.el
@@ -256,6 +256,9 @@ overlays in it instead."
       (pop attr)
       (dotimes (_i 2) ;; front and back
         (push (make-overlay 0 0 nil t) highlight-parentheses--overlays)
+        ;; Add a 'highlight-parentheses property just that we can easily
+        ;; identify "our" overlay with `C-u C-x =' and friends.
+        (overlay-put (car highlight-parentheses--overlays) 
'highlight-parentheses t)
         (overlay-put (car highlight-parentheses--overlays) 'font-lock-face 
attributes)))
     (setq highlight-parentheses--overlays (nreverse 
highlight-parentheses--overlays))))
 



reply via email to

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