]> code.delx.au - gnu-emacs/commitdiff
Explictly explain that package-initialize loads the packages
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2016 14:48:50 +0000 (16:48 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2016 14:48:50 +0000 (16:48 +0200)
* lisp/emacs-lisp/package.el (package-initialize): Be explicit
in saying that `package-initialize' obviates adjusting the
path or requiring the packages, as this is a question that
apparently comes up now and then (bug#18829).

lisp/emacs-lisp/package.el

index d5d35d78b83be296f9629ddabce73b089fc2bec8..c05bb53b0b31cf0ed0087639e3a8a264c5320b83 100644 (file)
@@ -1430,7 +1430,10 @@ If `user-init-file' does not mention `(package-initialize)', add
 it to the file.
 If called as part of loading `user-init-file', set
 `package-enable-at-startup' to nil, to prevent accidentally
-loading packages twice."
+loading packages twice.
+It is not necessary to adjust `load-path' or `require' the
+individual packages after calling `package-initialize' -- this is
+taken care of by `package-initialize'."
   (interactive)
   (setq package-alist nil)
   (if (equal user-init-file load-file-name)