Improve package management feedback

With quelpa updating fixed, there is a longer delay on package update.
So I added a 'looking for outdated packages...' message, and improved
the formatting of backtraces in debug output.
This commit is contained in:
Henrik Lissner 2017-06-03 21:31:16 +02:00
parent ca96b0d9c5
commit 1c6ecc660a

View file

@ -184,10 +184,11 @@ Used by `doom/packages-install'."
(when doom-debug-mode
(with-temp-buffer
(insert
(pp-to-string
(cl-loop for i from 2
for frame = (backtrace-frame i)
while frame
collect frame))
collect frame)))
(indent-code-rigidly (point-min) (point-max) 4)
(message! "%s" (buffer-string)))))))
@ -305,6 +306,7 @@ appropriate."
"Interactive command for updating packages."
(interactive)
(doom-refresh-packages doom-debug-mode)
(message! "Looking for outdated packages...")
(let ((packages (sort (doom-get-outdated-packages) #'doom--sort-alpha)))
(cond ((not packages)
(message! (green "Everything is up-to-date")))