summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-11-22 16:36:25 +0200
committerEli Zaretskii <eliz@gnu.org>2019-11-22 16:36:25 +0200
commitf373cec7f51653130bff0844262d356c2bf7c649 (patch)
tree6d08d63528721746b14a27a1659ba4c2b8af10b5
parentf9b8c74af1817add9ff5b5b73da574b81d91f68a (diff)
downloademacs-f373cec7f51653130bff0844262d356c2bf7c649.tar.gz
Fix uses of inhibit-message in package.el
* lisp/emacs-lisp/package.el (package-generate-autoloads) (package--compile, package--save-selected-packages): Don't use 'inhibit-message' to bind 'noninteractive' and 'save-silently', since 'inhibit-message' already disables all messages. (Bug#38264)
-rw-r--r--lisp/emacs-lisp/package.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 26207e03c4f..56e160232da 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1002,8 +1002,6 @@ untar into a directory named DIR; otherwise, signal an error."
(generated-autoload-file (expand-file-name auto-name pkg-dir))
;; We don't need 'em, and this makes the output reproducible.
(autoload-timestamps nil)
- ;; Silence `autoload-generate-file-autoloads'.
- (noninteractive inhibit-message)
(backup-inhibited t)
(version-control 'never))
(package-autoload-ensure-default-file generated-autoload-file)
@@ -1029,7 +1027,6 @@ untar into a directory named DIR; otherwise, signal an error."
This assumes that `pkg-desc' has already been activated with
`package-activate-1'."
(let ((warning-minimum-level :error)
- (save-silently inhibit-message)
(load-path load-path))
(byte-recompile-directory (package-desc-dir pkg-desc) 0 t)))
@@ -1840,8 +1837,7 @@ Used to populate `package-selected-packages'."
(when value
(setq package-selected-packages value))
(if after-init-time
- (let ((save-silently inhibit-message))
- (customize-save-variable 'package-selected-packages package-selected-packages))
+ (customize-save-variable 'package-selected-packages package-selected-packages)
(add-hook 'after-init-hook #'package--save-selected-packages)))
(defun package--user-selected-p (pkg)