aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-30 16:48:50 +0200
committerLars Ingebrigtsen2016-04-30 16:48:50 +0200
commit619e0aedb2f3dbfe6821ac34e2d25b4e5c181117 (patch)
treec530f9a12c124c9ef4d0422796a1044cdedc4838
parent3eca9a03816f95da0030665223c0b5262f223ba7 (diff)
downloademacs-619e0aedb2f3dbfe6821ac34e2d25b4e5c181117.tar.gz
emacs-619e0aedb2f3dbfe6821ac34e2d25b4e5c181117.zip
Explictly explain that package-initialize loads the packages
* 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).
-rw-r--r--lisp/emacs-lisp/package.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index d5d35d78b83..c05bb53b0b3 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1430,7 +1430,10 @@ If `user-init-file' does not mention `(package-initialize)', add
1430it to the file. 1430it to the file.
1431If called as part of loading `user-init-file', set 1431If called as part of loading `user-init-file', set
1432`package-enable-at-startup' to nil, to prevent accidentally 1432`package-enable-at-startup' to nil, to prevent accidentally
1433loading packages twice." 1433loading packages twice.
1434It is not necessary to adjust `load-path' or `require' the
1435individual packages after calling `package-initialize' -- this is
1436taken care of by `package-initialize'."
1434 (interactive) 1437 (interactive)
1435 (setq package-alist nil) 1438 (setq package-alist nil)
1436 (if (equal user-init-file load-file-name) 1439 (if (equal user-init-file load-file-name)