mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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")))
|
||||||
|
Reference in New Issue
Block a user