 
 ;; .merlin parsing
 (defun merlin-add-path (kind dir dirname)
-  "Add an item to a path in merlin."
+  "Add an item to the path given by KIND in merlin."
   (merlin-send-command "path" (list "add" kind (concat dirname dir))))
 
 (defun merlin-get-packages ()
   "Get the list of available findlib package."
   (append (merlin-send-command "find" '("list")) nil))
 (defun merlin-use (pkg)
-  "Use a package in the current session of merlin."
+  "Use PKG in the current session of merlin."
   (interactive
    (list (completing-read "Package to use:" (merlin-get-packages))))
   (merlin-send-command "find" (list "use" (list pkg)))


;;; Commentary:
;; Description:
;; merlin-mode is an emacs interface to merlin, the OCaml scriptable toplevel. It allows you
;; to perform queries such as getting the type of an expression, completion, and so on.

;; Installation:
;; You need merlin installed on your system (ocamlmerlin binary) for merlin-mode to work.

;;; Usage
;; merlin-mode allows you to send merlin commands from within an emacs
;; buffer to use merlin capabilities. A bit like proofgeneral, you
;; need to tell merlin about your code (with merlin-to-point), and
;; then you can perform query to know the type of an expression:
;; merlin will fetch it in the typed tree generated on the fly.

  (overlay-put merlin-lock-zone-highlight-overlay 'face 'merlin-locked-face))

(defun merlin-update-point (view-errors-p)
  "Move the merlin point to around the given the current point.
It proceeds as follows:

- It retracts merlin from the point given in argument to get it
to the last phrase ending.
