emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 8f1e784 32/64: Explictly explain that package-ini


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] emacs-25 8f1e784 32/64: Explictly explain that package-initialize loads the packages
Date: Sun, 01 May 2016 18:18:41 +0000

branch: emacs-25
commit 8f1e784f19c74702947c99d321d20fd1156b432c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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)
---
 lisp/emacs-lisp/package.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 7a5b020..3f0e972 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
 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]