emacs-diffs
[Top][All Lists]
Advanced

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

master 1d5b164109b: Stop adding the package directory to the load path


From: Robert Pluim
Subject: master 1d5b164109b: Stop adding the package directory to the load path
Date: Tue, 23 May 2023 09:19:44 -0400 (EDT)

branch: master
commit 1d5b164109b59559d34c545c2a163fa067ca22b2
Author: Robert Pluim <rpluim@gmail.com>
Commit: Robert Pluim <rpluim@gmail.com>

    Stop adding the package directory to the load path
    
    The generated autoloads files for packages have been updating the
    load-path for the last decade.
    
    * lisp/emacs-lisp/package.el (package-activate-1): Don't update
    load-path with package directory.
---
 lisp/emacs-lisp/package.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 78017b77677..3d3158111b2 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -901,8 +901,7 @@ correspond to previously loaded files."
         (when reload
           (package--reload-previously-loaded pkg-desc))
         (with-demoted-errors "Error loading autoloads: %s"
-          (load (package--autoloads-file-name pkg-desc) nil t))
-        (add-to-list 'load-path (directory-file-name pkg-dir)))
+          (load (package--autoloads-file-name pkg-desc) nil t)))
       ;; Add info node.
       (when (file-exists-p (expand-file-name "dir" pkg-dir))
         ;; FIXME: not the friendliest, but simple.



reply via email to

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