* lisp/emacs-lisp/package.el (package-activate-1): Don't let a missing
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 3 Sep 2013 18:21:41 +0000 (14:21 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 3 Sep 2013 18:21:41 +0000 (14:21 -0400)
<pkg>-autoloads.el file stop us.

lisp/ChangeLog
lisp/emacs-lisp/package.el

index fdd8bda..d71087f 100644 (file)
@@ -1,7 +1,10 @@
 2013-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/package.el (package-activate-1): Don't let a missing
+       <pkg>-autoloads.el file stop us.
+
        * net/tramp.el (with-parsed-tramp-file-name): Silence compiler
-       warnings, and factor our common code.
+       warnings, and factor out common code.
 
 2013-09-03  Dmitry Gutov  <dgutov@yandex.ru>
 
index d02bcef..7799ee2 100644 (file)
@@ -464,7 +464,8 @@ Return the max version (as a string) if the package is held at a lower version."
             (package-desc-full-name pkg-desc)))
     ;; Add to load path, add autoloads, and activate the package.
     (let ((old-lp load-path))
-      (load (expand-file-name (format "%s-autoloads" name) pkg-dir) nil t)
+      (with-demoted-errors
+        (load (expand-file-name (format "%s-autoloads" name) pkg-dir) nil t))
       (when (and (eq old-lp load-path)
                  (not (or (member pkg-dir load-path)
                           (member pkg-dir-dir load-path))))