diff options
Diffstat (limited to 'lisp/emacs-lisp/package.el')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 7462d2069b9..993216c6881 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -905,6 +905,14 @@ sexps)." | |||
| 905 | (mapc (lambda (c) (load (car c) nil t)) | 905 | (mapc (lambda (c) (load (car c) nil t)) |
| 906 | (sort result (lambda (x y) (< (cdr x) (cdr y)))))))) | 906 | (sort result (lambda (x y) (< (cdr x) (cdr y)))))))) |
| 907 | 907 | ||
| 908 | (defun package--add-info-node (pkg-dir) | ||
| 909 | "Add info node located in PKG-DIR." | ||
| 910 | (when (file-exists-p (expand-file-name "dir" pkg-dir)) | ||
| 911 | ;; FIXME: not the friendliest, but simple. | ||
| 912 | (require 'info) | ||
| 913 | (info-initialize) | ||
| 914 | (add-to-list 'Info-directory-list pkg-dir))) | ||
| 915 | |||
| 908 | (defun package-activate-1 (pkg-desc &optional reload deps) | 916 | (defun package-activate-1 (pkg-desc &optional reload deps) |
| 909 | "Activate package given by PKG-DESC, even if it was already active. | 917 | "Activate package given by PKG-DESC, even if it was already active. |
| 910 | If DEPS is non-nil, also activate its dependencies (unless they | 918 | If DEPS is non-nil, also activate its dependencies (unless they |
| @@ -936,12 +944,7 @@ correspond to previously loaded files." | |||
| 936 | The following files have already been loaded: %S"))) | 944 | The following files have already been loaded: %S"))) |
| 937 | (with-demoted-errors "Error loading autoloads: %s" | 945 | (with-demoted-errors "Error loading autoloads: %s" |
| 938 | (load (package--autoloads-file-name pkg-desc) nil t))) | 946 | (load (package--autoloads-file-name pkg-desc) nil t))) |
| 939 | ;; Add info node. | 947 | (package--add-info-node pkg-dir) |
| 940 | (when (file-exists-p (expand-file-name "dir" pkg-dir)) | ||
| 941 | ;; FIXME: not the friendliest, but simple. | ||
| 942 | (require 'info) | ||
| 943 | (info-initialize) | ||
| 944 | (add-to-list 'Info-directory-list pkg-dir)) | ||
| 945 | (push name package-activated-list) | 948 | (push name package-activated-list) |
| 946 | ;; Don't return nil. | 949 | ;; Don't return nil. |
| 947 | t))) | 950 | t))) |