Previously, deferred installation didn't work because I didn't convert
the result of a `completing-read' back from a string to a symbol,
which meant the hash-table lookup failed.
use-package--deferred-packages)
(if packages
(list
- (completing-read
- "Select package: "
- packages
- nil
- 'require-match)
+ (intern
+ (completing-read
+ "Select package: "
+ packages
+ nil
+ 'require-match))
:interactive)
(user-error "No packages with deferred installation"))))
(let ((spec (gethash name use-package--deferred-packages)))