]> code.delx.au - gnu-emacs-elpa/commitdiff
Merge commit '50127e91c39a8c72eb2ea1ffadf708f31699cf84'
authorIngo Lohmar <i.lohmar@gmail.com>
Fri, 6 Feb 2015 23:15:04 +0000 (00:15 +0100)
committerIngo Lohmar <i.lohmar@gmail.com>
Fri, 6 Feb 2015 23:15:04 +0000 (00:15 +0100)
Correct license wording
Only save when variables have been initialized

packages/company-statistics/company-statistics-tests.el
packages/company-statistics/company-statistics.el

index 6e0b4605792645776970b7bfaaef7682ca4f4a1c..3032387e465cd1b356c52fb5bf5eb3f1f4e55811 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Ingo Lohmar
 
-;; This file is part of GNU Emacs.
+;; This file is not part of GNU Emacs.
 
 ;; GNU Emacs is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
index a3fef235a926dc8a75c0edf614efd363993ef83d..d0e96b0394fd90e17381bd4534c580ea97162904 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Ingo Lohmar <i.lohmar@gmail.com>
 ;; URL: https://github.com/company-mode/company-statistics
-;; Version: 0.1
+;; Version: 0.1.1
 ;; Keywords: abbrev, convenience, matching
 ;; Package-Requires: ((emacs "24.3") (company "0.8.5"))
 
@@ -153,7 +153,8 @@ number)."
     (write-file company-statistics-file)))
 
 (defun company-statistics--maybe-save ()
-  (when company-statistics-auto-save
+  (when (and (company-statistics--initialized-p)
+             company-statistics-auto-save)
     (company-statistics--save)))
 
 (defun company-statistics--load ()