Low priority overlay #33

Mzyxptlk opened this Issue Jan 31, 2013 · 1 comment


None yet

2 participants


When I try to use iedit in a buffer with flymake errors, flymake's overlay overrules iedit's match highlighting because it has a higher priority. I made the following change to fix it:

Index: iedit.el
--- iedit.el    (revision 1784)
+++ iedit.el    (working copy)
@@ -76,6 +76,11 @@
   :type 'face
   :group 'iedit)

+(defcustom iedit-overlay-priority 200
+  "The priority of the overlay used to indicated matches."
+  :type 'integer
+  :group 'iedit)
 (defcustom iedit-current-word-default 't
   "If no-nil, use current word by default for the occurrence."
   :type 'boolean
@@ -271,6 +276,7 @@
     (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)

 (defun iedit-make-unmatched-lines-overlay (begin end)

200 is a higher priority than highlight-current-line (60) and flymake (100) use, but lower than show-paren (1000) and auto-complete (9999) do.

(Excuse the svn diff format.)


I have integrated the change to the master branch.

@victorhge victorhge closed this Feb 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment