summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-02-13 11:02:35 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-02-13 11:02:35 -0500
commit1ead7dbd665015ab579ecb17932281862376f1d4 (patch)
treeed940bfa00da910cf6240b8a4ff7965a13d36c56 /lisp/emacs-lisp
parent5cbfe5b97446df1b8d2091edc2cfc7d2d1f5662e (diff)
downloademacs-1ead7dbd665015ab579ecb17932281862376f1d4.tar.gz
emacs-1ead7dbd665015ab579ecb17932281862376f1d4.tar.bz2
emacs-1ead7dbd665015ab579ecb17932281862376f1d4.zip
* lisp/emacs-lisp/package.el (package--initialized): Move before first use.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index be019b4cf05..c15c9e079fe 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -735,6 +735,8 @@ It will move point to somewhere in the headers."
(package--with-work-buffer location file
(package-unpack name version))))
+(defvar package--initialized nil)
+
(defun package-installed-p (package &optional min-version)
"Return true if PACKAGE, of MIN-VERSION or newer, is installed.
MIN-VERSION should be a version list."
@@ -896,8 +898,6 @@ using `package-compute-transaction'."
package-user-dir)
(package-activate elt (version-to-list v-string)))))
-(defvar package--initialized nil)
-
;;;###autoload
(defun package-install (name)
"Install the package named NAME.