Change how doom/info lists private packages
This commit is contained in:
parent
c8cd94a5d2
commit
fff4968da9
2 changed files with 14 additions and 10 deletions
|
@ -80,13 +80,17 @@ ready to be pasted in a bug report on github."
|
|||
'("n/a")))
|
||||
(packages
|
||||
,@(or (ignore-errors
|
||||
(cl-loop for (name . plist) in (doom-package-list)
|
||||
if (doom-package-private-p name)
|
||||
(let ((doom-interactive-mode t)
|
||||
doom-packages
|
||||
doom-disabled-packages)
|
||||
(doom--read-module-packages-file
|
||||
(doom-path doom-private-dir "packages.el")
|
||||
nil t)
|
||||
(cl-loop for (name . plist) in (nreverse doom-packages)
|
||||
collect
|
||||
(format
|
||||
"%s" (if-let (splist (doom-plist-delete (copy-sequence plist)
|
||||
(if-let (splist (doom-plist-delete (copy-sequence plist)
|
||||
:modules))
|
||||
(cons name splist)
|
||||
(prin1-to-string (cons name splist))
|
||||
name))))
|
||||
'("n/a")))
|
||||
(elpa
|
||||
|
|
|
@ -131,10 +131,10 @@ was installed with."
|
|||
;;
|
||||
;;; Package list getters
|
||||
|
||||
(defun doom--read-module-packages-file (file &optional eval noerror)
|
||||
(defun doom--read-module-packages-file (file &optional noeval noerror)
|
||||
(with-temp-buffer ; prevent buffer-local settings from propagating
|
||||
(condition-case e
|
||||
(if (not eval)
|
||||
(if (not noeval)
|
||||
(load file noerror t t)
|
||||
(when (file-readable-p file)
|
||||
(insert-file-contents file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue