From: Paul Pogonyshev Date: Thu, 10 Jan 2019 19:39:54 +0000 (+0100) Subject: Make `package' not "uninhibit" messages (Bug#34037) X-Git-Tag: emacs-27.0.90~2866 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8d3fff6bd68198b1a76dce559b0b8a5f87cd5103;p=emacs.git Make `package' not "uninhibit" messages (Bug#34037) * lisp/emacs-lisp/package.el: Don't let-bind inhibit-message to a different value if it was non-nil. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 949ad711ae3..7b779b5ae5b 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1625,7 +1625,7 @@ downloads in the background." (make-directory package-user-dir t)) (let ((default-keyring (expand-file-name "package-keyring.gpg" data-directory)) - (inhibit-message async)) + (inhibit-message (or inhibit-message async))) (when (and package-check-signature (file-exists-p default-keyring)) (condition-case-unless-debug error (package-import-keyring default-keyring) @@ -3261,7 +3261,7 @@ objects removed." (redisplay 'force) (dolist (elt (package--sort-by-dependence delete-list)) (condition-case-unless-debug err - (let ((inhibit-message package-menu-async)) + (let ((inhibit-message (or inhibit-message package-menu-async))) (package-delete elt nil 'nosave)) (error (message "Error trying to delete `%s': %S" (package-desc-full-name elt)