Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add overlay priority option

  • Loading branch information...
commit 7a35f3bd062ad647130e4c605a1ccc0bed0d3dbd 1 parent 83c037d
@victorhge authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 iedit-lib.el
View
8 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)
Please sign in to comment.
Something went wrong with that request. Please try again.