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:
parent
ca96b0d9c5
commit
1c6ecc660a
1 changed files with 6 additions and 4 deletions
|
@ -184,10 +184,11 @@ Used by `doom/packages-install'."
|
||||||
(when doom-debug-mode
|
(when doom-debug-mode
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert
|
(insert
|
||||||
(cl-loop for i from 2
|
(pp-to-string
|
||||||
for frame = (backtrace-frame i)
|
(cl-loop for i from 2
|
||||||
while frame
|
for frame = (backtrace-frame i)
|
||||||
collect frame))
|
while frame
|
||||||
|
collect frame)))
|
||||||
(indent-code-rigidly (point-min) (point-max) 4)
|
(indent-code-rigidly (point-min) (point-max) 4)
|
||||||
(message! "%s" (buffer-string)))))))
|
(message! "%s" (buffer-string)))))))
|
||||||
|
|
||||||
|
@ -305,6 +306,7 @@ appropriate."
|
||||||
"Interactive command for updating packages."
|
"Interactive command for updating packages."
|
||||||
(interactive)
|
(interactive)
|
||||||
(doom-refresh-packages doom-debug-mode)
|
(doom-refresh-packages doom-debug-mode)
|
||||||
|
(message! "Looking for outdated packages...")
|
||||||
(let ((packages (sort (doom-get-outdated-packages) #'doom--sort-alpha)))
|
(let ((packages (sort (doom-get-outdated-packages) #'doom--sort-alpha)))
|
||||||
(cond ((not packages)
|
(cond ((not packages)
|
||||||
(message! (green "Everything is up-to-date")))
|
(message! (green "Everything is up-to-date")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue