* bug#34037: [PATCH] Make `package' not "uninhibit" messages
@ 2019-01-10 19:42 Paul Pogonyshev
2019-05-16 13:07 ` bug#34037: ping Paul Pogonyshev
2019-05-17 0:09 ` bug#34037: [PATCH] Make `package' not "uninhibit" messages Noam Postavsky
0 siblings, 2 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2019-01-10 19:42 UTC (permalink / raw)
To: 34037
[-- Attachment #1.1: Type: text/plain, Size: 131 bytes --]
Two `package' functions can reset `inhibit-message' that is already set to
t by outer code. Attached trivial patch fixes it.
Paul
[-- Attachment #1.2: Type: text/html, Size: 184 bytes --]
[-- Attachment #2: 0001-Make-package-not-uninhibit-messages.patch --]
[-- Type: text/x-patch, Size: 1423 bytes --]
From d5bebf1d282ee620f500393a40dc63eca29a1b10 Mon Sep 17 00:00:00 2001
From: Paul Pogonyshev <pogonyshev@gmail.com>
Date: Thu, 10 Jan 2019 20:39:54 +0100
Subject: [PATCH] Make `package' not "uninhibit" messages
---
lisp/emacs-lisp/package.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 1752c7e9fe..dc279f55c2 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1605,7 +1605,7 @@ package-refresh-contents
(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)
@@ -3245,7 +3245,7 @@ package-menu--perform-transaction
(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)
--
2.19.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#34037: ping
2019-01-10 19:42 bug#34037: [PATCH] Make `package' not "uninhibit" messages Paul Pogonyshev
@ 2019-05-16 13:07 ` Paul Pogonyshev
2019-05-17 0:09 ` bug#34037: [PATCH] Make `package' not "uninhibit" messages Noam Postavsky
1 sibling, 0 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2019-05-16 13:07 UTC (permalink / raw)
To: 34037
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
Can anyone please install this patch? To see the problem, run from command
line:
$ rm -rf /tmp/elpa; emacs --batch --eval "(let ((inhibit-message t)
(package-archives '((\"melpa-stable\" .
\"http://stable.melpa.org/packages/\")))
(package-user-dir \"/tmp/elpa\")) (package-initialize t)
(package-refresh-contents))"
[-- Attachment #2: Type: text/html, Size: 541 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#34037: [PATCH] Make `package' not "uninhibit" messages
2019-01-10 19:42 bug#34037: [PATCH] Make `package' not "uninhibit" messages Paul Pogonyshev
2019-05-16 13:07 ` bug#34037: ping Paul Pogonyshev
@ 2019-05-17 0:09 ` Noam Postavsky
1 sibling, 0 replies; 3+ messages in thread
From: Noam Postavsky @ 2019-05-17 0:09 UTC (permalink / raw)
To: Paul Pogonyshev; +Cc: 34037
tags 34037 fixed
close 34037 27.1
quit
Paul Pogonyshev <pogonyshev@gmail.com> writes:
> Two `package' functions can reset `inhibit-message' that is already set to
> t by outer code. Attached trivial patch fixes it.
Pushed to master.
8d3fff6bd6 2019-05-16T20:08:27-04:00 "Make `package' not "uninhibit" messages (Bug#34037)"
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8d3fff6bd68198b1a76dce559b0b8a5f87cd5103
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-17 0:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-10 19:42 bug#34037: [PATCH] Make `package' not "uninhibit" messages Paul Pogonyshev
2019-05-16 13:07 ` bug#34037: ping Paul Pogonyshev
2019-05-17 0:09 ` bug#34037: [PATCH] Make `package' not "uninhibit" messages Noam Postavsky
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.