]> rtime.felk.cvut.cz Git - sojka/company-mode.git/blobdiff - company-eclim.el
Bumped version to 0.5.
[sojka/company-mode.git] / company-eclim.el
index 0441b5c2be08b624c89dfbe1814e83ba46b7be58..8ff01410408cdd9225723010b5ee3732c8a777b6 100644 (file)
@@ -1,8 +1,8 @@
 ;;; company-eclim.el --- a company-mode completion back-end for eclim.
 ;;
-;; Copyright (C) 2009 Nikolaj Schumacher
+;; Copyright (C) 2009-2010 Nikolaj Schumacher
 ;;
-;; This file is part of company 0.4.3.
+;; This file is part of company 0.5.
 ;;
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License
@@ -35,7 +35,7 @@
   :group 'company
   :type 'file)
 
-(defcustom company-eclim-auto-save nil
+(defcustom company-eclim-auto-save t
   "*Determines whether to save the buffer when retrieving completions.
 eclim can only complete correctly when the buffer has been saved."
   :group 'company
@@ -98,7 +98,7 @@ eclim can only complete correctly when the buffer has been saved."
         (project-name (company-eclim--project-name)))
     (when company-eclim-auto-save
       (when (buffer-modified-p)
-        (save-buffer))
+        (basic-save-buffer))
       ;; FIXME: Sometimes this isn't finished when we complete.
       (company-eclim--call-process "java_src_update"
                                   "-p" (company-eclim--project-name)