 ;;; prettier-js.el --- utility functions to format reason code
+
+;; Version: 0.1.0
 
 ;; Copyright (c) 2014 The go-mode Authors. All rights reserved.
 ;; Portions Copyright (c) 2015-present, Facebook, Inc. All rights reserved.

                    (insert text)))))
             ((equal action "d")
              (with-current-buffer target-buffer
                (prettier--goto-line (- from line-offset))
                (setq line-offset (+ line-offset len))
                (prettier--delete-whole-line len)))
             (t
              (error "invalid rcs patch or internal error in prettier--apply-rcs-patch")))))))))

(defun prettier--process-errors (filename tmpfile errorfile errbuf)
  (with-current-buffer errbuf
    (if (eq prettier-show-errors 'echo)
        (progn
          (message "%s" (buffer-string))
          (prettier--kill-error-buffer errbuf))
      (insert-file-contents errorfile nil nil nil)
      ;; Convert the prettier stderr to something understood by the compilation mode.
      (goto-char (point-min))

    (remove-hook 'before-save-hook 'prettier 'local)))

(provide 'prettier-js)
;;; prettier-js.el ends here
