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

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

[nongnu] elpa/iedit 7a35f3bd06 157/301: Add overlay priority option


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 7a35f3bd06 157/301: Add overlay priority option
Date: Mon, 10 Jan 2022 22:58:59 -0500 (EST)

branch: elpa/iedit
commit 7a35f3bd062ad647130e4c605a1ccc0bed0d3dbd
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>

    Add overlay priority option
---
 iedit-lib.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/iedit-lib.el b/iedit-lib.el
index a3d639ecd5..523a74e9d8 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -3,7 +3,7 @@
 
 ;; Copyright (C) 2010, 2011, 2012 Victor Ren
 
-;; Time-stamp: <2013-01-19 22:00:41 Victor Ren>
+;; Time-stamp: <2013-02-03 15:25:22 Victor Ren>
 ;; Author: Victor Ren <victorhge@gmail.com>
 ;; Keywords: occurrence region simultaneous rectangle refactoring
 ;; Version: 0.97
@@ -73,6 +73,11 @@ mode, set it as nil."
   :type 'boolean
   :group 'iedit)
 
+(defcustom iedit-overlay-priority 200
+  "The priority of the overlay used to indicate matches."
+  :type 'integer
+  :group 'iedit)
+
 (defvar iedit-occurrences-overlays nil
   "The occurrences slot contains a list of overlays used to
 indicate the position of each editable occurrence.  In addition, the
@@ -288,6 +293,7 @@ occurrences if the user starts typing."
     (overlay-put occurrence 'insert-in-front-hooks '(iedit-occurrence-update))
     (overlay-put occurrence 'insert-behind-hooks '(iedit-occurrence-update))
     (overlay-put occurrence 'modification-hooks '(iedit-occurrence-update))
+    (overlay-put occurrence 'priority iedit-overlay-priority)
     occurrence))
 
 (defun iedit-make-read-only-occurrence-overlay (begin end)



reply via email to

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