diff options
| author | Lars Ingebrigtsen | 2016-04-30 16:48:50 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-04-30 16:48:50 +0200 |
| commit | 619e0aedb2f3dbfe6821ac34e2d25b4e5c181117 (patch) | |
| tree | c530f9a12c124c9ef4d0422796a1044cdedc4838 | |
| parent | 3eca9a03816f95da0030665223c0b5262f223ba7 (diff) | |
| download | emacs-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.el | 5 |
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 | |||
| 1430 | it to the file. | 1430 | it to the file. |
| 1431 | If called as part of loading `user-init-file', set | 1431 | If 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 |
| 1433 | loading packages twice." | 1433 | loading packages twice. |
| 1434 | It is not necessary to adjust `load-path' or `require' the | ||
| 1435 | individual packages after calling `package-initialize' -- this is | ||
| 1436 | taken 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) |