 
 (defun ycmd--goto (type)
   "Implementation of GoTo according to the request type."
-  (when (ycmd--major-mode-to-file-types major-mode)
+  (when ycmd-mode
     (let ((content (cons (list "command_arguments" type)
                          (ycmd--standard-content))))
       (deferred:$


To see what the returned structure looks like, you can use
`ycmd-display-completions'."
  (when (ycmd--major-mode-to-file-types major-mode)
    (let ((content (append (ycmd--standard-content)
                           (when ycmd-force-semantic-completion
                             '(("force_semantic" . "true"))))))

The results of the notification are passed to all of the
functions in `ycmd-file-parse-result-hook'.
"
  (when (and ycmd-mode
             (not ycmd--notification-in-progress))
    (let ((content (cons '("event_name" . "FileReadyToParse")
                         (ycmd--standard-content)))
