]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/package.el (package-activate-1): Avoid duplicates
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 14 Mar 2020 18:59:45 +0000 (14:59 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 14 Mar 2020 18:59:45 +0000 (14:59 -0400)
in `Info-directory-list`.

lisp/emacs-lisp/package.el

index bce17a04ba78fb3cee3c3787af9e69eee329149b..07d63b3a7dc77a50e5adeaf30184ac2a5436e976 100644 (file)
@@ -798,7 +798,7 @@ correspond to previously loaded files (those returned by
         ;; FIXME: not the friendliest, but simple.
         (require 'info)
         (info-initialize)
-        (push pkg-dir Info-directory-list))
+        (add-to-list 'Info-directory-list pkg-dir))
       (push name package-activated-list)
       ;; Don't return nil.
       t)))