aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2014-12-18 15:24:39 -0500
committerSam Steingold2014-12-18 15:24:39 -0500
commitf87eff571ab7ca477e4b8ccb68a2eb306426f11e (patch)
tree9fdf6a854ebd72e5560cd087da9438a7308003db
parent0f765f454dd4278a529e247598a3da50f551cf0c (diff)
downloademacs-f87eff571ab7ca477e4b8ccb68a2eb306426f11e.tar.gz
emacs-f87eff571ab7ca477e4b8ccb68a2eb306426f11e.zip
Fix the `with-demoted-errors' calls
* lisp/emacs-lisp/package.el (package-activate-1): Fix the `with-demoted-errors' calls: the first argument must be a string literal.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/emacs-lisp/package.el4
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d1d866b1d5e..8978bde017d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * emacs-lisp/package.el: Avoid compilation warning by declaring 3 * emacs-lisp/package.el: Avoid compilation warning by declaring
4 the `find-library-name' function. 4 the `find-library-name' function.
5 (package-activate-1): Fix the `with-demoted-errors' calls:
6 the first argument must be a string literal.
5 7
62014-12-18 Martin Rudalics <rudalics@gmx.at> 82014-12-18 Martin Rudalics <rudalics@gmx.at>
7 9
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index c25c29a89cb..80b7670c1f0 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -532,7 +532,7 @@ correspond to previously loaded files (those returned by
532 (autoloads-file (expand-file-name 532 (autoloads-file (expand-file-name
533 (format "%s-autoloads" name) pkg-dir)) 533 (format "%s-autoloads" name) pkg-dir))
534 (loaded-files-list (and reload (package--list-loaded-files pkg-dir)))) 534 (loaded-files-list (and reload (package--list-loaded-files pkg-dir))))
535 (with-demoted-errors (format "Error loading %s: %%s" name) 535 (with-demoted-errors "Error in package-activate-1: %s"
536 (load autoloads-file nil t)) 536 (load autoloads-file nil t))
537 (when (and (eq old-lp load-path) 537 (when (and (eq old-lp load-path)
538 (not (or (member pkg-dir load-path) 538 (not (or (member pkg-dir load-path)
@@ -545,7 +545,7 @@ correspond to previously loaded files (those returned by
545 ;; to their new definitions. If another package is being installed which 545 ;; to their new definitions. If another package is being installed which
546 ;; depends on this new definition, not doing this update would cause 546 ;; depends on this new definition, not doing this update would cause
547 ;; compilation errors and break the installation. 547 ;; compilation errors and break the installation.
548 (with-demoted-errors (format "Error loading %s: %%s" name) 548 (with-demoted-errors "Error in package-activate-1: %s"
549 (mapc (lambda (feature) (load feature nil t)) 549 (mapc (lambda (feature) (load feature nil t))
550 ;; Skip autoloads file since we already evaluated it above. 550 ;; Skip autoloads file since we already evaluated it above.
551 (remove (file-truename autoloads-file) loaded-files-list)))) 551 (remove (file-truename autoloads-file) loaded-files-list))))