]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `package' not "uninhibit" messages (Bug#34037)
authorPaul Pogonyshev <pogonyshev@gmail.com>
Thu, 10 Jan 2019 19:39:54 +0000 (20:39 +0100)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 17 May 2019 00:08:27 +0000 (20:08 -0400)
* lisp/emacs-lisp/package.el: Don't let-bind inhibit-message to a
different value if it was non-nil.

lisp/emacs-lisp/package.el

index 949ad711ae34c9aea40519bd82d6d56d1d7c1cdd..7b779b5ae5ba01a24c0eef4023b7552f6a3da9a0 100644 (file)
@@ -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)