From: Stefan Monnier Date: Sat, 14 Mar 2020 18:59:45 +0000 (-0400) Subject: * lisp/emacs-lisp/package.el (package-activate-1): Avoid duplicates X-Git-Tag: emacs-28.0.90~7757 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f9685f984774f5cbe61c7fd0fc6e6935afe92743;p=emacs.git * lisp/emacs-lisp/package.el (package-activate-1): Avoid duplicates in `Info-directory-list`. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index bce17a04ba7..07d63b3a7dc 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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)))