diff options
| author | Lars Ingebrigtsen | 2016-04-30 16:48:50 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 19:27:12 +0200 |
| commit | 8f1e784f19c74702947c99d321d20fd1156b432c (patch) | |
| tree | b652f2a30f8dab95f74ebb36ed8c8dccd1b78084 /lisp | |
| parent | 137868051e5ce4c4ba9cc92caa26fbf968e6f208 (diff) | |
| download | emacs-8f1e784f19c74702947c99d321d20fd1156b432c.tar.gz emacs-8f1e784f19c74702947c99d321d20fd1156b432c.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).
(cherry picked from commit 619e0aedb2f3dbfe6821ac34e2d25b4e5c181117)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 7a5b020203e..3f0e972afeb 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1426,7 +1426,10 @@ If `user-init-file' does not mention `(package-initialize)', add | |||
| 1426 | it to the file. | 1426 | it to the file. |
| 1427 | If called as part of loading `user-init-file', set | 1427 | If called as part of loading `user-init-file', set |
| 1428 | `package-enable-at-startup' to nil, to prevent accidentally | 1428 | `package-enable-at-startup' to nil, to prevent accidentally |
| 1429 | loading packages twice." | 1429 | loading packages twice. |
| 1430 | It is not necessary to adjust `load-path' or `require' the | ||
| 1431 | individual packages after calling `package-initialize' -- this is | ||
| 1432 | taken care of by `package-initialize'." | ||
| 1430 | (interactive) | 1433 | (interactive) |
| 1431 | (setq package-alist nil) | 1434 | (setq package-alist nil) |
| 1432 | (if (equal user-init-file load-file-name) | 1435 | (if (equal user-init-file load-file-name) |