     (mapcar 'expand-file-name it)))
 
 (defun ycmd-get-completions (buffer pos)
-  "Get completions for position POS in BUFFER from the ycmd server.
+  "Get completions in BUFFER for position POS from the ycmd server.
 
 Returns a deferred object which yields the HTTP message
-content. If completions are available, the structure looks like
+content.  If completions are available, the structure looks like
 this:
 
    ((completion_start_column . 6)

              (ycmd--handle-goto-success location))))))))

(defun ycmd--send-goto-request (type buffer pos)
  (with-current-buffer buffer
    (goto-char pos)
    (let ((content (cons (list "command_arguments" type)

               (concat kind ": " text)))))))))

(defun ycmd--display-error (msg)
  "Display error message with MSG."
  (message "ERROR: %s" msg))

(defun ycmd-decorate-with-parse-results (results)
  "Decorates a buffer using the RESULTS of a file-ready parse list.

This is suitable as an entry in `ycmd-file-parse-result-hook'."
  (with-silent-modifications
    (set-text-properties (point-min) (point-max) nil))
  (mapcar 'ycmd--decorate-single-parse-result results)
  results)

(defun ycmd--display-single-file-parse-result (result)
  "Insert a single file parse RESULT."
  (ycmd--with-destructured-parse-result result
    (insert (format "%s:%s - %s - %s\n" filepath line-num kind text))))

(defun ycmd-display-file-parse-results (results)
  "Display parse RESULTS in a buffer."
  (let ((buffer "*ycmd-file-parse-results*"))
    (get-buffer-create buffer)
    (with-current-buffer buffer
