 (defun intero-parse-errors-warnings-splices (checker buffer string)
   "Parse flycheck errors and warnings.
 CHECKER and BUFFER are added to each item parsed from STRING."
-  (with-temp-buffer
+  (intero-with-temp-buffer
     (insert string)
     (goto-char (point-min))
     (let ((messages (list))

  (if intero-project-root
      intero-project-root
    (setq intero-project-root
          (with-temp-buffer
            (cl-case (save-excursion
                       (intero-call-process intero-stack-executable nil
                                            (current-buffer)

            ;; we defer setting that until after.
            (cd (intero-extend-path-by-buffer-host root initial-buffer))
            (intero-repl-mode) ; wipes buffer-local variables
            (intero-inherit-local-variables initial-buffer)
            (setq intero-buffer-host (intero-buffer-host initial-buffer))
            (intero-repl-mode-start backend-buffer
                                    (buffer-local-value 'intero-targets backend-buffer)
