 				     end
 				     &optional length)
   "Remove an error from the pending error lists if it is edited by the user."
-  (when is-after (merlin--clear-error-overlay overlay)))
+  (when is-after (delete-overlay overlay)))
 
 (defun merlin-transform-display-errors (errors)
   "Populate the error list with ERRORS, transformed into an

  (when (get-buffer (merlin-process-buffer))
    (ignore-errors (merlin-kill-process)))
  (merlin-start-process merlin-default-flags (funcall merlin-grouping-function))
  (setq merlin-pending-errors nil))

(defun merlin-list-instances ()
  "Return the list of instances currently started."

;; Errors related variables
(defvar merlin-erroneous-buffer nil
  "Whether the buffer is erroneous or not")
(make-variable-buffer-local 'merlin-erroneous-buffer)

(defvar merlin-highlight-overlay nil
  "Merlin overlay used for highlights.")
