Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installing Doom Emacs!
- ✓ Created ~/.config/doom/
- - Creating ~/.config/doom/init.el...
- ✓ Done!
- - Creating ~/.config/doom/config.el...
- ✓ Done!
- - Creating ~/.config/doom/packages.el...
- ✓ Done!
- > Generating envvars file
- ✓ Generated ~/.config/emacs/.local/env
- > Installing plugins
- > Installing straight...
- > Ensuring packages are installed and built...
- > Updating recipe repos...
- > Updating recipes for melpa...
- > Updating recipes for nongnu-elpa...
- > Updating recipes for gnu-elpa-mirror...
- > Updating recipes for el-get...
- > Updating recipes for emacsmirror-mirror...
- > Cloning link-hint.el...
- - Checked out 826993a0ab736ab09f53a0623fb44edf2182b07c
- > Building link-hint...
- > Building link-hint > Cloning avy...
- - Checked out 933d1f36cca0f71e4acb5fac707e9ae26c536264
- > Building link-hint > Building avy...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN avy-autoloads.el
- > Building link-hint...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN link-hint-autoloads.el
- > Cloning ob-async...
- - Pinned to 9aac486073f5c356ada20e716571be33a350a982
- > Building ob-async...
- > Building ob-async > Cloning emacs-async...
- - Pinned to 9aac486073f5c356ada20e716571be33a350a982
- > Building ob-async > Building async...
- INFO Scraping 5 files for loaddefs...
- INFO Scraping 5 files for loaddefs...done
- GEN async-autoloads.el
- > Building ob-async > Cloning org...
- - Pinned to 9aac486073f5c356ada20e716571be33a350a982
- > Building ob-async > Building org...
- INFO Scraping 128 files for loaddefs...
- INFO Scraping 128 files for loaddefs...done
- GEN org-autoloads.el
- GEN org-loaddefs.el
- > Building ob-async > Cloning dash.el...
- - Pinned to 9aac486073f5c356ada20e716571be33a350a982
- > Building ob-async > Building dash...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN dash-autoloads.el
- > Building ob-async...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN ob-async-autoloads.el
- > Cloning orgit...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit...
- > Building orgit > Cloning compat...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building compat...
- > Building orgit > Building compat > Cloning seq...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building compat > Building seq...
- INFO Scraping 4 files for loaddefs...
- INFO Scraping 4 files for loaddefs...done
- GEN seq-autoloads.el
- > Building orgit > Building compat...
- INFO Scraping 9 files for loaddefs...
- INFO Scraping 9 files for loaddefs...done
- > Building orgit > Cloning magit...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building magit...
- > Building orgit > Building magit > Cloning llama...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building magit > Building llama...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN llama-autoloads.el
- > Building orgit > Building magit > Building magit-section...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN magit-section-autoloads.el
- > Building orgit > Building magit > Cloning transient...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building magit > Building transient...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN transient-autoloads.el
- > Building orgit > Building magit > Cloning with-editor...
- - Pinned to 6ad0dc35c8df54fae4ef27e5145760e22fbbf890
- > Building orgit > Building magit > Building with-editor...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN with-editor-autoloads.el
- > Building orgit > Building magit...
- INFO Scraping 45 files for loaddefs...
- INFO Scraping 45 files for loaddefs...done
- GEN magit-autoloads.el
- > Building orgit...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN orgit-autoloads.el
- > Cloning evil-org-mode (for evil-org)...
- - Checked out 06518c65ff4f7aea2ea51149d701549dcbccce5d
- > Building evil-org...
- > Building evil-org > Cloning evil...
- - Checked out 682e87fce99f39ea3155f11f87ee56b6e4593304
- > Building evil-org > Building evil...
- > Building evil-org > Building evil > Cloning goto-chg...
- > Building evil-org > Building evil > Building goto-chg...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN goto-chg-autoloads.el
- > Building evil-org > Building evil...
- INFO Scraping 18 files for loaddefs...
- INFO Scraping 18 files for loaddefs...done
- GEN evil-autoloads.el
- > Building evil-org...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN evil-org-autoloads.el
- > Cloning org-cliplink...
- - Pinned to 13e0940b65d22bec34e2de4bc8cba1412a7abfbc
- > Building org-cliplink...
- INFO Scraping 3 files for loaddefs...
- INFO Scraping 3 files for loaddefs...done
- GEN org-cliplink-autoloads.el
- > Cloning toc-org...
- - Pinned to 6d3ae0fc47ce79b1ea06cabe21a3c596395409cd
- > Building toc-org...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN toc-org-autoloads.el
- > Cloning ox-clip...
- - Pinned to a549cc8e1747beb6b7e567ffac27e31ba45cb8e8
- > Building ox-clip...
- > Building ox-clip > Cloning emacs-htmlize...
- - Pinned to a549cc8e1747beb6b7e567ffac27e31ba45cb8e8
- > Building ox-clip > Building htmlize...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN htmlize-autoloads.el
- > Building ox-clip...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN ox-clip-autoloads.el
- > Cloning org-contrib...
- - Pinned to 8d14a600a2069ffc494edfc9a12b8e5fc8840bf1
- > Building org-contrib...
- INFO Scraping 57 files for loaddefs...
- INFO Scraping 57 files for loaddefs...done
- GEN org-contrib-autoloads.el
- > Cloning evil-markdown...
- - Pinned to 8e6cc68af83914b2fa9fd3a3b8472573dbcef477
- > Building evil-markdown...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-markdown-autoloads.el
- > Cloning edit-indirect...
- - Pinned to 82a28d8a85277cfe453af464603ea330eae41c05
- > Building edit-indirect...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN edit-indirect-autoloads.el
- > Cloning markdown-toc...
- - Pinned to d2fb4cbd95e558042307d706f9f47f93687c9fcc
- > Building markdown-toc...
- > Building markdown-toc > Cloning markdown-mode...
- - Pinned to d2fb4cbd95e558042307d706f9f47f93687c9fcc
- > Building markdown-toc > Building markdown-mode...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN markdown-mode-autoloads.el
- > Building markdown-toc > Cloning s.el...
- - Pinned to d2fb4cbd95e558042307d706f9f47f93687c9fcc
- > Building markdown-toc > Building s...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Building markdown-toc...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN markdown-toc-autoloads.el
- > Cloning emacs-buttercup...
- - Checked out c467c659b2c5b7029e20909331e072d7301af1d5
- > Building buttercup...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN buttercup-autoloads.el
- > Cloning flycheck-package...
- - Pinned to a52e4e95f3151898b36739dfdb4a98b368626fc0
- > Building flycheck-package...
- > Building flycheck-package > Cloning flycheck...
- - Pinned to a52e4e95f3151898b36739dfdb4a98b368626fc0
- > Building flycheck-package > Building flycheck...
- INFO Scraping 3 files for loaddefs...
- INFO Scraping 3 files for loaddefs...done
- GEN flycheck-autoloads.el
- > Building flycheck-package > Cloning package-lint...
- - Pinned to a52e4e95f3151898b36739dfdb4a98b368626fc0
- > Building flycheck-package > Building package-lint...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN package-lint-autoloads.el
- > Building flycheck-package...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN flycheck-package-autoloads.el
- > Cloning elisp-demos...
- - Pinned to 1a108d1c5011f9ced58be2ca98bea1fbd4130a2f
- > Building elisp-demos...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN elisp-demos-autoloads.el
- > Cloning elisp-def...
- - Pinned to 1ad4baccbf3d0d13e7607d332ae6bc60a5dd7360
- > Building elisp-def...
- > Building elisp-def > Cloning f.el...
- - Pinned to 1ad4baccbf3d0d13e7607d332ae6bc60a5dd7360
- > Building elisp-def > Building f...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- > Building elisp-def...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN elisp-def-autoloads.el
- > Cloning overseer.el...
- - Checked out 7fdcf1a6fba6b1569a09c1666b4e51bcde266ed9
- > Building overseer...
- > Building overseer > Cloning pkg-info...
- > Building overseer > Building pkg-info...
- > Building overseer > Building pkg-info > Cloning epl...
- > Building overseer > Building pkg-info > Building epl...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Building overseer > Building pkg-info...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN pkg-info-autoloads.el
- > Building overseer...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN overseer-autoloads.el
- > Cloning macrostep...
- - Pinned to d0928626b4711dcf9f8f90439d23701118724199
- > Building macrostep...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN macrostep-autoloads.el
- > Cloning helpful...
- - Pinned to 5ad8a9ce57b6c076428286c3d25968b449ab6fd3
- > Building helpful...
- > Building helpful > Cloning elisp-refs...
- - Pinned to 5ad8a9ce57b6c076428286c3d25968b449ab6fd3
- > Building helpful > Building elisp-refs...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN elisp-refs-autoloads.el
- > Building helpful...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN helpful-autoloads.el
- > Cloning highlight-quoted...
- - Pinned to 24103478158cd19fbcfb4339a3f1fa1f054f1469
- > Building highlight-quoted...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN highlight-quoted-autoloads.el
- > Cloning emacs-request...
- - Checked out c22e3c23a6dd90f64be536e176ea0ed6113a5ba6
- > Building request...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN request-autoloads.el
- > Cloning dumb-jump...
- - Pinned to 737267a6139a988369cb95ecd365b2db95e05db0
- > Building dumb-jump...
- > Building dumb-jump > Cloning popup-el (for popup)...
- - Pinned to 737267a6139a988369cb95ecd365b2db95e05db0
- > Building dumb-jump > Building popup...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Building dumb-jump...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN dumb-jump-autoloads.el
- > Cloning eros...
- - Pinned to a9a92bdc6be0521a6a06eb464be55ed61946639c
- > Building eros...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN eros-autoloads.el
- > Cloning quickrun...
- - Pinned to 4b6df453f80ae7eab250a312056eaef95890e4c6
- > Building quickrun...
- > Building quickrun > Cloning ht.el...
- - Pinned to 4b6df453f80ae7eab250a312056eaef95890e4c6
- > Building quickrun > Building ht...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Building quickrun...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN quickrun-autoloads.el
- > Cloning flycheck-popup-tip...
- - Pinned to ef86aad907f27ca076859d8d9416f4f7727619c6
- > Building flycheck-popup-tip...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN flycheck-popup-tip-autoloads.el
- > Cloning git-modes...
- - Pinned to f99010bbeb8b6d8a0819fac0195a2ef0159d08f0
- > Building git-modes...
- INFO Scraping 4 files for loaddefs...
- INFO Scraping 4 files for loaddefs...done
- GEN git-modes-autoloads.el
- > Cloning git-timemachine...
- - Pinned to d1346a76122595aeeb7ebb292765841c6cfd417b
- > Building git-timemachine...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN git-timemachine-autoloads.el
- > Cloning browse-at-remote...
- - Pinned to 76aa27dfd469fcae75ed7031bb73830831aaccbf
- > Building browse-at-remote...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN browse-at-remote-autoloads.el
- > Cloning vundo...
- - Pinned to c32481ab489e769324300d7b1a4781cd7091fa65
- > Building vundo...
- INFO Scraping 4 files for loaddefs...
- INFO Scraping 4 files for loaddefs...done
- GEN vundo-autoloads.el
- > Cloning undo-fu-session...
- - Pinned to d90d42ddba8fa42ef5dc109196545caeabb42b75
- > Building undo-fu-session...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN undo-fu-session-autoloads.el
- > Cloning undo-fu...
- - Pinned to 399cc12f907f81a709f9014b6fad0205700d5772
- > Building undo-fu...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN undo-fu-autoloads.el
- > Cloning diredfl...
- - Pinned to fe72d2e42ee18bf6228bba9d7086de4098f18a70
- > Building diredfl...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN diredfl-autoloads.el
- > Cloning dirvish...
- - Pinned to 2d63995d3296c259cef90830cf0433602429ecec
- > Building dirvish...
- INFO Scraping 18 files for loaddefs...
- INFO Scraping 18 files for loaddefs...done
- GEN dirvish-autoloads.el
- > Cloning snippets (for doom-snippets)...
- - Checked out b672e69bbf5623e8af0fed27b23a1093fa217315
- > Building doom-snippets...
- > Building doom-snippets > Cloning yasnippet...
- - Checked out 5b315f1753480ebe669b157b8242448b5eafcfea
- > Building doom-snippets > Building yasnippet...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN yasnippet-autoloads.el
- > Building doom-snippets...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN doom-snippets-autoloads.el
- > Cloning auto-yasnippet...
- - Pinned to 6a9e406d0d7f9dfd6dff7647f358cb05a0b1637e
- > Building auto-yasnippet...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN auto-yasnippet-autoloads.el
- > Cloning evil-vimish-fold...
- - Pinned to b6e0e6b91b8cd047e80debef1a536d9d49eef31a
- > Building evil-vimish-fold...
- > Building evil-vimish-fold > Cloning vimish-fold...
- - Pinned to b6e0e6b91b8cd047e80debef1a536d9d49eef31a
- > Building evil-vimish-fold > Building vimish-fold...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN vimish-fold-autoloads.el
- > Building evil-vimish-fold...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-vimish-fold-autoloads.el
- > Cloning evil-collection...
- - Pinned to cb850ff0d11f644dbd133428cff57e82e655ecd7
- > Building evil-collection...
- > Building evil-collection > Cloning annalist.el...
- - Pinned to cb850ff0d11f644dbd133428cff57e82e655ecd7
- > Building evil-collection > Building annalist...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN annalist-autoloads.el
- > Building evil-collection...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-collection-autoloads.el
- > Cloning evil-quick-diff...
- - Pinned to 69c883720b30a892c63bc89f49d4f0e8b8028908
- > Building evil-quick-diff...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-quick-diff-autoloads.el
- > Cloning exato...
- - Pinned to aee7af7b7a0e7551478f453d1de7d5b9cb2e06c4
- > Building exato...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Cloning evil-visualstar...
- - Pinned to 06c053d8f7381f91c53311b1234872ca96ced752
- > Building evil-visualstar...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-visualstar-autoloads.el
- > Cloning evil-traces...
- - Pinned to 82e8a7b4213aed140f6eb5f2cc33a09bb5587166
- > Building evil-traces...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-traces-autoloads.el
- > Cloning evil-textobj-anyblock...
- - Pinned to 29280cd71a05429364cdceef2ff595ae8afade4d
- > Building evil-textobj-anyblock...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-textobj-anyblock-autoloads.el
- > Cloning evil-surround...
- - Pinned to da05c60b0621cf33161bb4335153f75ff5c29d91
- > Building evil-surround...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-surround-autoloads.el
- > Cloning evil-snipe...
- - Pinned to c2108d3932fcd2f75ac3e48250d6badd668f5b4f
- > Building evil-snipe...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-snipe-autoloads.el
- > Cloning evil-numbers...
- - Pinned to f4bbb729eebeef26966fae17bd414a7b49f82275
- > Building evil-numbers...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-numbers-autoloads.el
- > Cloning evil-nerd-commenter...
- - Pinned to ae52c5070a48793e2c24474c9c8dbf20175d18a0
- > Building evil-nerd-commenter...
- INFO Scraping 3 files for loaddefs...
- INFO Scraping 3 files for loaddefs...done
- GEN evil-nerd-commenter-autoloads.el
- > Cloning evil-lion...
- - Pinned to 5a0bca151466960e090d1803c4c5ded88875f90a
- > Building evil-lion...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-lion-autoloads.el
- > Cloning evil-indent-plus...
- - Pinned to f392696e4813f1d3a92c7eeed333248914ba6dae
- > Building evil-indent-plus...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-indent-plus-autoloads.el
- > Cloning evil-exchange...
- - Pinned to 5f0a2d41434c17c6fb02e4f744043775de1c63a2
- > Building evil-exchange...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-exchange-autoloads.el
- > Cloning evil-escape...
- - Pinned to 819f1ee1cf3f69a1ae920e6004f2c0baeebbe077
- > Building evil-escape...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-escape-autoloads.el
- > Cloning evil-embrace.el...
- - Checked out 3081d37811b6a3dfaaf01d578c7ab7a746c6064d
- > Building evil-embrace...
- > Building evil-embrace > Cloning embrace.el...
- > Building evil-embrace > Building embrace...
- > Building evil-embrace > Building embrace > Cloning expand-region.el...
- > Building evil-embrace > Building embrace > Building expand-region...
- INFO Scraping 28 files for loaddefs...
- INFO Scraping 28 files for loaddefs...done
- GEN expand-region-autoloads.el
- > Building evil-embrace > Building embrace...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN embrace-autoloads.el
- > Building evil-embrace...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-embrace-autoloads.el
- > Cloning evil-easymotion...
- - Pinned to f96c2ed38ddc07908db7c3c11bcd6285a3e8c2e9
- > Building evil-easymotion...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-easymotion-autoloads.el
- > Cloning evil-args...
- - Pinned to a8151556f63c9d45d0c44c8a7ef9e5a542f3cdc7
- > Building evil-args...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-args-autoloads.el
- > Cloning persp-mode.el...
- - Checked out 40e9993a9711cba5fb56dfec81a507fabeba9668
- > Building persp-mode...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN persp-mode-autoloads.el
- > Cloning vi-tilde-fringe...
- - Pinned to f1597a8d54535bb1d84b442577b2024e6f910308
- > Building vi-tilde-fringe...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN vi-tilde-fringe-autoloads.el
- > Cloning diff-hl...
- - Pinned to 65a5de16e21c87b7c12a78a63fc3b57e07c03c86
- > Building diff-hl...
- INFO Scraping 8 files for loaddefs...
- INFO Scraping 8 files for loaddefs...done
- GEN diff-hl-autoloads.el
- > Cloning evil-goggles...
- - Pinned to 34ca276a85f615d2b45e714c9f8b5875bcb676f3
- > Building evil-goggles...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN evil-goggles-autoloads.el
- > Cloning evil-anzu...
- - Pinned to d1e98ee6976437164627542909a25c6946497899
- > Building evil-anzu...
- > Building evil-anzu > Cloning anzu...
- - Pinned to d1e98ee6976437164627542909a25c6946497899
- > Building evil-anzu > Building anzu...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN anzu-autoloads.el
- > Building evil-anzu...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Cloning doom-modeline...
- - Pinned to 9d6f0f9635ae722b6bd943a76e996f54443e373f
- > Building doom-modeline...
- > Building doom-modeline > Cloning nerd-icons.el...
- - Pinned to 9d6f0f9635ae722b6bd943a76e996f54443e373f
- > Building doom-modeline > Building nerd-icons...
- INFO Scraping 3 files for loaddefs...
- INFO Scraping 3 files for loaddefs...done
- GEN nerd-icons-autoloads.el
- > Building doom-modeline > Cloning shrink-path.el...
- - Pinned to 9d6f0f9635ae722b6bd943a76e996f54443e373f
- > Building doom-modeline > Building shrink-path...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Building doom-modeline...
- INFO Scraping 4 files for loaddefs...
- INFO Scraping 4 files for loaddefs...done
- GEN doom-modeline-autoloads.el
- > Cloning hl-todo...
- - Pinned to fb692ec0923bcd98eaa8760127921aca61db8e1e
- > Building hl-todo...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN hl-todo-autoloads.el
- > Cloning emacs-solaire-mode...
- - Checked out c9334666bd208f3322e6118d30eba1b2438e2bb9
- > Building solaire-mode...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN solaire-mode-autoloads.el
- > Cloning themes (for doom-themes)...
- - Checked out 88126db5e63d816533d0372cb99246b842cac74e
- > Building doom-themes...
- INFO Scraping 83 files for loaddefs...
- INFO Scraping 83 files for loaddefs...done
- GEN doom-themes-autoloads.el
- > Cloning consult-yasnippet...
- - Pinned to 834d39acfe8a7d2c304afbe4d649b9372118c756
- > Building consult-yasnippet...
- > Building consult-yasnippet > Cloning consult...
- - Pinned to 834d39acfe8a7d2c304afbe4d649b9372118c756
- > Building consult-yasnippet > Building consult...
- INFO Scraping 9 files for loaddefs...
- INFO Scraping 9 files for loaddefs...done
- GEN consult-autoloads.el
- > Building consult-yasnippet...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN consult-yasnippet-autoloads.el
- > Cloning Emacs-wgrep (for wgrep)...
- - Checked out 49f09ab9b706d2312cab1199e1eeb1bcd3f27f6f
- > Building wgrep...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN wgrep-autoloads.el
- > Cloning marginalia...
- - Pinned to a527fb03b76a2bce1e360c6e73a095e06922c3f3
- > Building marginalia...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN marginalia-autoloads.el
- > Cloning embark (for embark-consult)...
- - Checked out d5df0eff182b014ab49328a4dbb1d69eb7faafbd
- > Building embark-consult...
- > Building embark-consult > Building embark...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN embark-autoloads.el
- > Building embark-consult...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- > Cloning consult-flycheck...
- - Pinned to 3bc2141daf8cfad7e4d2e2f78b15d45033f707a5
- > Building consult-flycheck...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN consult-flycheck-autoloads.el
- > Cloning consult-dir...
- - Pinned to 4532b8d215d16b0159691ce4dee693e72d71e0ff
- > Building consult-dir...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN consult-dir-autoloads.el
- > Cloning orderless...
- - Pinned to c7cb04499d94ee1c17affb29b1cfcd2a45116c97
- > Building orderless...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN orderless-autoloads.el
- > Cloning vertico...
- - Pinned to 026a81a9c893b1d73cdbcb12436a0fad3ebdeb5f
- > Building vertico...
- INFO Scraping 13 files for loaddefs...
- INFO Scraping 13 files for loaddefs...done
- GEN vertico-autoloads.el
- > Cloning yasnippet-capf...
- - Pinned to de6446732b106965ea583c9e076770694f7226b8
- > Building yasnippet-capf...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN yasnippet-capf-autoloads.el
- > Cloning cape...
- - Pinned to 2e86b6deed2844fc1345ff01bc92c3a849a33778
- > Building cape...
- INFO Scraping 3 files for loaddefs...
- INFO Scraping 3 files for loaddefs...done
- GEN cape-autoloads.el
- > Cloning corfu...
- - Pinned to c302b0526ad9d0c99d1d0639df63f6ca65accfc3
- > Building corfu...
- INFO Scraping 7 files for loaddefs...
- INFO Scraping 7 files for loaddefs...done
- GEN corfu-autoloads.el
- > Cloning emacs-which-key...
- - Checked out 38d4308d1143b61e4004b6e7a940686784e51500
- > Building which-key...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN which-key-autoloads.el
- > Cloning general.el...
- - Checked out 826bf2b97a0fb4a34c5eb96ec2b172d682fd548f
- > Building general...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN general-autoloads.el
- > Cloning project...
- - Pinned to d193442fca61b41803baf6446e4052ed034869a6
- > Building project...
- > Building project > Cloning xref...
- - Pinned to d193442fca61b41803baf6446e4052ed034869a6
- > Building project > Building xref...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN xref-autoloads.el
- > Building project...
- INFO Scraping 2 files for loaddefs...
- INFO Scraping 2 files for loaddefs...done
- GEN project-autoloads.el
- > Cloning projectile...
- - Pinned to 55db082cdf7b849335ccf24b7ba5aa2607d6fe93
- > Building projectile...
- INFO Scraping 1 files for loaddefs...
- INFO Scraping 1 files for loaddefs...done
- GEN projectile-autoloads.el
- > Cloning nongnu (for ws-butler)...
- Warning (straight): Could not reset to commit "d3927f6131f215e9cd3e1f747be5a91e5be8ca9a" in repository "nongnu"
- Warning (straight): Could not check out branch "elpa/ws-butler" of repository "nongnu"
- x The package manager threw an error
- x Last 16 lines of straight's error log:
- fatal: unable to access 'https://git.savannah.gnu.org/git/emacs/nongnu.git/': The requested URL returned error: 502
- [Return code: 128]
- $ cd /home/jhin/.config/emacs/.local/straight/repos/
- $ git clone --origin origin --no-checkout https\://git.savannah.gnu.org/git/emacs/nongnu.git /home/jhin/.config/emacs/.local/straight/repos/nongnu/ --no-single-branch --branch elpa/ws-butler
- Cloning into '/home/jhin/.config/emacs/.local/straight/repos/nongnu'...
- fatal: unable to access 'https://git.savannah.gnu.org/git/emacs/nongnu.git/': The requested URL returned error: 502
- [Return code: 128]
- $ cd /home/jhin/.config/emacs/.local/straight/repos/nongnu/
- $ git reset --hard d3927f6131f215e9cd3e1f747be5a91e5be8ca9a
- [File error while Setting current directory]
- $ cd /home/jhin/.config/emacs/.local/straight/repos/nongnu/
- $ git checkout -B elpa/ws-butler origin/elpa/ws-butler
- [File error while Setting current directory]
- $ cd /home/jhin/.config/emacs/.local/straight/repos/nongnu/
- $ git checkout HEAD
- [File error while Setting current directory]
- Error: doom-package-error ("ws-butler" (file-missing "Opening output file" "No such file or directory" "/home/jhin/.config/emacs/.local/state/logs/cli.doom.250331042001.138282.error"))
- signal(doom-package-error ("ws-butler" (file-missing "Opening output file" "No such file or directory" "/home/jhin/.config/emacs/.local/state/logs/cli.doom.250331042001.138282.error")))
- (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e))))
- (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))
- (let* ((--cl-rest-- (append (list :recipe recipe) recipe)) (package (car (cdr (plist-member --cl-rest-- ':package)))) (local-repo (car (cdr (plist-member --cl-rest-- ':local-repo)))) (recipe (car (cdr (plist-member --cl-rest-- ':recipe))))) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e))))))
- (cl-destructuring-bind (&key package local-repo recipe &allow-other-keys) (append (list :recipe recipe) recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e))))))
- (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e))))))
- (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))
- (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail))))
- (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built))
- (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built)))
- (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built))))
- (let* ((built (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built)))))) (if built (progn (if (and (featurep 'native-compile) straight--native-comp-available) (progn (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors))) (delete-directory (straight--modified-dir) 'recursive) (doom-print (doom-print--format (doom-print--class 'success "\15Built %d package(s)") (length built)))) (doom-print (doom-print--format (doom-print--class 'item "No packages need attention"))) nil))
- (let ((straight-check-for-modifications (if (file-directory-p (straight--modified-dir)) (progn '(find-when-checking)))) (straight--allow-find (and straight-check-for-modifications (executable-find straight-find-executable) t)) (straight--packages-not-to-rebuild (or straight--packages-not-to-rebuild (make-hash-table :test #'equal))) (straight--packages-to-rebuild (or (if force-p :all straight--packages-to-rebuild) (make-hash-table :test #'equal))) (recipes (doom-package-recipe-alist)) (pinned (doom-package-pinned-alist))) (add-hook 'native-comp-async-cu-done-functions #'doom-packages--native-compile-done-h) (straight--make-build-cache-available) (let* ((built (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built)))))) (if built (progn (if (and (featurep 'native-compile) straight--native-comp-available) (progn (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors))) (delete-directory (straight--modified-dir) 'recursive) (doom-print (doom-print--format (doom-print--class 'success "\15Built %d package(s)") (length built)))) (doom-print (doom-print--format (doom-print--class 'item "No packages need attention"))) nil)))
- (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let ((straight-check-for-modifications (if (file-directory-p (straight--modified-dir)) (progn '(find-when-checking)))) (straight--allow-find (and straight-check-for-modifications (executable-find straight-find-executable) t)) (straight--packages-not-to-rebuild (or straight--packages-not-to-rebuild (make-hash-table :test #'equal))) (straight--packages-to-rebuild (or (if force-p :all straight--packages-to-rebuild) (make-hash-table :test #'equal))) (recipes (doom-package-recipe-alist)) (pinned (doom-package-pinned-alist))) (add-hook 'native-comp-async-cu-done-functions #'doom-packages--native-compile-done-h) (straight--make-build-cache-available) (let* ((built (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built)))))) (if built (progn (if (and (featurep 'native-compile) straight--native-comp-available) (progn (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors))) (delete-directory (straight--modified-dir) 'recursive) (doom-print (doom-print--format (doom-print--class 'success "\15Built %d package(s)") (length built)))) (doom-print (doom-print--format (doom-print--class 'item "No packages need attention"))) nil))))
- (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let ((straight-check-for-modifications (if (file-directory-p (straight--modified-dir)) (progn '(find-when-checking)))) (straight--allow-find (and straight-check-for-modifications (executable-find straight-find-executable) t)) (straight--packages-not-to-rebuild (or straight--packages-not-to-rebuild (make-hash-table :test #'equal))) (straight--packages-to-rebuild (or (if force-p :all straight--packages-to-rebuild) (make-hash-table :test #'equal))) (recipes (doom-package-recipe-alist)) (pinned (doom-package-pinned-alist))) (add-hook 'native-comp-async-cu-done-functions #'doom-packages--native-compile-done-h) (straight--make-build-cache-available) (let* ((built (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-build-functions))) (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t)) (want-byte-compile (or (eq build t) (memq 'compile build))) (want-native-compile (or (eq build t) (memq 'native-compile build)))) (and (eq (car-safe build) :not) (progn (setq want-byte-compile (not want-byte-compile)) (setq want-native-compile (not want-native-compile)))) (if (or (not (featurep 'native-compile)) (not straight--native-comp-available)) (progn (setq want-native-compile nil))) (and (or want-byte-compile want-native-compile) (or (file-newer-than-file-p repo-dir build-dir) (file-exists-p (straight--modified-dir package)) (let* ((outdated nil) (--cl-var-- (doom-files-in build-dir :match "\\.el$" :full t)) (file nil)) (while (consp --cl-var--) (setq file (car --cl-var--)) (if (or (if want-byte-compile (doom-packages--elc-file-outdated-p file)) (if want-native-compile (doom-packages--eln-file-outdated-p file))) (progn (setq outdated t) (if want-native-compile (progn (setq doom-packages--eln-output-expected (cons file doom-packages--eln-output-expected)))))) (setq --cl-var-- (cdr --cl-var--))) outdated)) (puthash package t straight--packages-to-rebuild)))) (if (file-directory-p repo-dir) nil (doom-packages--cli-recipes-update)) (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit))))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (let* ((pin (and t (cdr (assoc package pinned))))) (if pin (doom-print (doom-print--format (doom-print--class 'item "Pinned to %s") pin)) (if commit (progn (doom-print (doom-print--format (doom-print--class 'item "Checked out %s") commit)))))))))) straight-vc-git-post-clone-hook))) (straight-use-package (intern package)) (if (file-in-directory-p repo-dir straight-base-dir) (progn (let ((try 0)) (while (not (file-directory-p (doom-path repo-dir ".git"))) (if (= try 3) (progn (error "Failed to clone package"))) (doom-print (doom-print--format (doom-print--class 'warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))) (delete-directory repo-dir t) (delete-directory build-dir t) (straight-use-package (intern package)) (setq try (1+ try)))) (if doom--system-windows-p (progn (let ((default-directory repo-dir)) (straight--process-run "git" "config" "core.autocrlf" "true"))))))) ((debug error) (signal 'doom-package-error (list package e)))))) (setq tail (cdr tail)))) (nreverse built)))))) (if built (progn (if (and (featurep 'native-compile) straight--native-comp-available) (progn (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors))) (delete-directory (straight--modified-dir) 'recursive) (doom-print (doom-print--format (doom-print--class 'success "\15Built %d package(s)") (length built)))) (doom-print (doom-print--format (doom-print--class 'item "No packages need attention"))) nil)))))
- doom-packages-ensure()
- (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure))
- (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))
- (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure))))
- (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
- (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))
- #f(lambda (cli alist) [t] (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))))(#s(doom-cli :command ("doom" "install") :type nil :docs (("SUMMARY" . "Installs and sets up Doom Emacs for the first time.") ("MAIN" . "") ("This command does the following" . "\n 1. Creates `$DOOMDIR' at ~/.config/doom (if it or ~/.doom.d doesn't exist),\n 2. Copies ~/.config/emacs/static/init.example.el to `$DOOMDIR'/init.el (if\n it doesn't exist),\n 3. Creates dummy files for `$DOOMDIR'/{config,packages}.el,\n 4. Prompts you to generate an envvar file (same as `$ doom env`),\n 5. Installs any dependencies of enabled modules (specified by `$DOOMDIR'/init.el),\n 6. And prompts to install nerd-icons' fonts\n\nThis command is idempotent and safe to reuse.\n\nChange `$DOOMDIR' with the `--doomdir' option, e.g.\n\n ```\n $ doom --doomdir /other/doom/config install\n ```")) :autoload nil :alias nil :options (#s(doom-cli-option :symbol aot? :docs "Enable ahead-of-time native-compilation (if available)" :multiple-p nil :flag-p nil :switches ("--aot") :arguments nil :default nil) #s(doom-cli-option :symbol config? :docs "Create `$DOOMDIR' or dummy files therein?" :multiple-p nil :flag-p t :switches ("--config") :arguments nil :default :yes) #s(doom-cli-option :symbol envfile? :docs "(Re)generate an envvars file? (see `$ doom help env`)" :multiple-p nil :flag-p t :switches ("--env") :arguments nil :default :yes) #s(doom-cli-option :symbol install? :docs "Auto-install packages?" :multiple-p nil :flag-p t :switches ("--install") :arguments nil :default :yes) #s(doom-cli-option :symbol fonts? :docs "Install (or prompt to install) nerd-icons fonts?" :multiple-p nil :flag-p t :switches ("--fonts") :arguments nil :default :yes) #s(doom-cli-option :symbol hooks? :docs "Deploy Doom's git hooks to itself?" :multiple-p nil :flag-p t :switches ("--hooks") :arguments nil :default :yes)) :arguments ((&context context)) :plist (:prefix (doom) :group "Config Management" :docs "Commands for maintaining your Doom Emacs configuration." :hide nil) :fn #f(lambda (cli alist) [t] (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))))) ((context . #s(doom-cli-context :init-time (26602 16929 355190 940000) :pid 138282 :step 0 :geometry (208 . 55) :pipes nil :suppress-prompts-p nil :prefix "doom" :meta-p nil :error nil :command ("doom" "env") :path nil :whole ("install") :options (("--deny") ("-d") ("--allow") ("-a") ("-o") ("--deny-all") ("--allow-all") ("--hooks") ("--fonts") ("--install") ("--env") ("--config") ("--aot") ("--eval") ("-E") ("--strict-load") ("--load") ("-L") ("--color") ("--benchmark") ("--profile") ("--pager") ("--emacsdir") ("--doomdir") ("--verbose") ("-v") ("--debug") ("-D") ("--force") ("-!")) :arguments ((t) (("doom" "env")) (("doom") "env")) :stdin #<buffer *doom-cli stdin*> :stdout #<buffer *doom-cli stdout*> :stderr #<buffer *doom-cli stderr*> :state nil)) (hooks? . :yes) (fonts? . :yes) (install? . :yes) (envfile? . :yes) (config? . :yes) (aot?)))
- funcall(#f(lambda (cli alist) [t] (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))) #s(doom-cli :command ("doom" "install") :type nil :docs (("SUMMARY" . "Installs and sets up Doom Emacs for the first time.") ("MAIN" . "") ("This command does the following" . "\n 1. Creates `$DOOMDIR' at ~/.config/doom (if it or ~/.doom.d doesn't exist),\n 2. Copies ~/.config/emacs/static/init.example.el to `$DOOMDIR'/init.el (if\n it doesn't exist),\n 3. Creates dummy files for `$DOOMDIR'/{config,packages}.el,\n 4. Prompts you to generate an envvar file (same as `$ doom env`),\n 5. Installs any dependencies of enabled modules (specified by `$DOOMDIR'/init.el),\n 6. And prompts to install nerd-icons' fonts\n\nThis command is idempotent and safe to reuse.\n\nChange `$DOOMDIR' with the `--doomdir' option, e.g.\n\n ```\n $ doom --doomdir /other/doom/config install\n ```")) :autoload nil :alias nil :options (#s(doom-cli-option :symbol aot? :docs "Enable ahead-of-time native-compilation (if available)" :multiple-p nil :flag-p nil :switches ("--aot") :arguments nil :default nil) #s(doom-cli-option :symbol config? :docs "Create `$DOOMDIR' or dummy files therein?" :multiple-p nil :flag-p t :switches ("--config") :arguments nil :default :yes) #s(doom-cli-option :symbol envfile? :docs "(Re)generate an envvars file? (see `$ doom help env`)" :multiple-p nil :flag-p t :switches ("--env") :arguments nil :default :yes) #s(doom-cli-option :symbol install? :docs "Auto-install packages?" :multiple-p nil :flag-p t :switches ("--install") :arguments nil :default :yes) #s(doom-cli-option :symbol fonts? :docs "Install (or prompt to install) nerd-icons fonts?" :multiple-p nil :flag-p t :switches ("--fonts") :arguments nil :default :yes) #s(doom-cli-option :symbol hooks? :docs "Deploy Doom's git hooks to itself?" :multiple-p nil :flag-p t :switches ("--hooks") :arguments nil :default :yes)) :arguments ((&context context)) :plist (:prefix (doom) :group "Config Management" :docs "Commands for maintaining your Doom Emacs configuration." :hide nil) :fn #f(lambda (cli alist) [t] (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))))) ((context . #s(doom-cli-context :init-time (26602 16929 355190 940000) :pid 138282 :step 0 :geometry (208 . 55) :pipes nil :suppress-prompts-p nil :prefix "doom" :meta-p nil :error nil :command ("doom" "env") :path nil :whole ("install") :options (("--deny") ("-d") ("--allow") ("-a") ("-o") ("--deny-all") ("--allow-all") ("--hooks") ("--fonts") ("--install") ("--env") ("--config") ("--aot") ("--eval") ("-E") ("--strict-load") ("--load") ("-L") ("--color") ("--benchmark") ("--profile") ("--pager") ("--emacsdir") ("--doomdir") ("--verbose") ("-v") ("--debug") ("-D") ("--force") ("-!")) :arguments ((t) (("doom" "env")) (("doom") "env")) :stdin #<buffer *doom-cli stdin*> :stdout #<buffer *doom-cli stdout*> :stderr #<buffer *doom-cli stderr*> :state nil)) (hooks? . :yes) (fonts? . :yes) (install? . :yes) (envfile? . :yes) (config? . :yes) (aot?)))
- doom-cli-execute(#s(doom-cli :command ("doom" "install") :type nil :docs (("SUMMARY" . "Installs and sets up Doom Emacs for the first time.") ("MAIN" . "") ("This command does the following" . "\n 1. Creates `$DOOMDIR' at ~/.config/doom (if it or ~/.doom.d doesn't exist),\n 2. Copies ~/.config/emacs/static/init.example.el to `$DOOMDIR'/init.el (if\n it doesn't exist),\n 3. Creates dummy files for `$DOOMDIR'/{config,packages}.el,\n 4. Prompts you to generate an envvar file (same as `$ doom env`),\n 5. Installs any dependencies of enabled modules (specified by `$DOOMDIR'/init.el),\n 6. And prompts to install nerd-icons' fonts\n\nThis command is idempotent and safe to reuse.\n\nChange `$DOOMDIR' with the `--doomdir' option, e.g.\n\n ```\n $ doom --doomdir /other/doom/config install\n ```")) :autoload nil :alias nil :options (#s(doom-cli-option :symbol aot? :docs "Enable ahead-of-time native-compilation (if available)" :multiple-p nil :flag-p nil :switches ("--aot") :arguments nil :default nil) #s(doom-cli-option :symbol config? :docs "Create `$DOOMDIR' or dummy files therein?" :multiple-p nil :flag-p t :switches ("--config") :arguments nil :default :yes) #s(doom-cli-option :symbol envfile? :docs "(Re)generate an envvars file? (see `$ doom help env`)" :multiple-p nil :flag-p t :switches ("--env") :arguments nil :default :yes) #s(doom-cli-option :symbol install? :docs "Auto-install packages?" :multiple-p nil :flag-p t :switches ("--install") :arguments nil :default :yes) #s(doom-cli-option :symbol fonts? :docs "Install (or prompt to install) nerd-icons fonts?" :multiple-p nil :flag-p t :switches ("--fonts") :arguments nil :default :yes) #s(doom-cli-option :symbol hooks? :docs "Deploy Doom's git hooks to itself?" :multiple-p nil :flag-p t :switches ("--hooks") :arguments nil :default :yes)) :arguments ((&context context)) :plist (:prefix (doom) :group "Config Management" :docs "Commands for maintaining your Doom Emacs configuration." :hide nil) :fn #f(lambda (cli alist) [t] (let ((aot? (cdr (assq 'aot? alist))) (config? (cdr (assq 'config? alist))) (envfile? (cdr (assq 'envfile? alist))) (install? (cdr (assq 'install? alist))) (fonts? (cdr (assq 'fonts? alist))) (hooks? (cdr (assq 'hooks? alist))) (context (cdr (assq 'context alist)))) (doom-print (doom-print--format (doom-print--style 'green "Installing Doom Emacs!\n"))) (let ((default-directory doom-emacs-dir) (yes? (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 6))))) (if (eq config? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not copying private config template, as requested"))) (if (and (not (file-directory-p doom-user-dir)) (not (getenv "DOOMDIR"))) (progn (let ((xdg-config-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))) (if (file-in-directory-p doom-emacs-dir xdg-config-dir) (progn (setq doom-user-dir (expand-file-name "doom/" xdg-config-dir))))))) (if (file-directory-p doom-user-dir) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)") (doom-print--class 'path doom-user-dir))) (make-directory doom-user-dir 'parents) (doom-print (doom-print--format (doom-print--class 'success "Created %s") (doom-print--class 'path doom-user-dir)))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (mapc #'(lambda (file) (let* ((template file) (filename (if template (car-safe (prog1 template (setq template (cdr template)))) (signal 'wrong-number-of-arguments (list '(filename . template) (length template)))))) (progn (setq filename (doom-path doom-user-dir filename)) (if (file-exists-p filename) (doom-print (doom-print--format (doom-print--class 'item "Skipping %s (already exists)...") (doom-print--class 'path filename))) (doom-print (doom-print--format (doom-print--class 'item "Creating %s...") (doom-print--class 'path filename))) (let ((temp-file filename) (temp-buffer (generate-new-buffer " *temp file*" t))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert-file-contents template)) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (doom-print (doom-print--format (doom-print--class 'success "Done!"))))))) (let ((template-dir (doom-path doom-emacs-dir "static/"))) (list (cons doom-module-init-file (file-name-with-extension (doom-path template-dir doom-module-init-file) ".example.el")) (cons doom-module-config-file (file-name-with-extension (doom-path template-dir doom-module-config-file) ".example.el")) (cons doom-module-packages-file (file-name-with-extension (doom-path template-dir doom-module-packages-file) ".example.el")))))))) (doom-load (doom-path doom-user-dir doom-module-init-file) t) (doom-load (doom-path doom-user-dir "cli.el") t) (if (eq envfile? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not generating envvars file, as requested"))) (if (file-exists-p doom-env-file) (doom-print (doom-print--format (doom-print--class 'item "Envvar file already exists, skipping"))) (if (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)")) (progn (call! '(env)))))) (if aot? (progn (progn (eval-after-load 'straight #'(lambda nil (setq straight--native-comp-available t)))))) (if (eq install? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not installing plugins, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Installing plugins"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-packages-ensure)))) (if (doom-profiles-bootloadable-p) (progn (doom-print (doom-print--format (doom-print--class 'start "Initializing profile bootstrapper..."))) (call! '(profiles sync "--reload")))) (doom-print (doom-print--format (doom-print--class 'start "Synchronizing default profile..."))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (doom-profile-generate))) (if (eq hooks? :no) (doom-print (doom-print--format (doom-print--class 'warn "Not deploying commit-msg and pre-push git hooks, as requested"))) (doom-print (doom-print--format (doom-print--class 'start "Deploying commit-msg and pre-push git hooks"))) (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-increment) 0) doom-print-indent))) (condition-case e (call! (cons 'ci (cons 'deploy-hooks (if yes? '("--force"))))) ('user-error (doom-print (doom-print--format (doom-print--class 'warn "%s") (error-message-string e)))))))) (if (file-exists-p "~/.emacs") (progn (doom-print (doom-print--format (doom-print--class 'warn "A ~/.emacs file was detected. This conflicts with Doom and should be deleted!"))))) (doom-print (doom-print--format (doom-print--class 'success "Finished! Doom is ready to go!\n"))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents (doom-path doom-emacs-dir "static/QUICKSTART_INTRO")) (doom-print (doom-print--format "%s" (buffer-string)))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))))) ((context . #s(doom-cli-context :init-time (26602 16929 355190 940000) :pid 138282 :step 0 :geometry (208 . 55) :pipes nil :suppress-prompts-p nil :prefix "doom" :meta-p nil :error nil :command ("doom" "env") :path nil :whole ("install") :options (("--deny") ("-d") ("--allow") ("-a") ("-o") ("--deny-all") ("--allow-all") ("--hooks") ("--fonts") ("--install") ("--env") ("--config") ("--aot") ("--eval") ("-E") ("--strict-load") ("--load") ("-L") ("--color") ("--benchmark") ("--profile") ("--pager") ("--emacsdir") ("--doomdir") ("--verbose") ("-v") ("--debug") ("-D") ("--force") ("-!")) :arguments ((t) (("doom" "env")) (("doom") "env")) :stdin #<buffer *doom-cli stdin*> :stdout #<buffer *doom-cli stdout*> :stderr #<buffer *doom-cli stderr*> :state nil)) (hooks? . :yes) (fonts? . :yes) (install? . :yes) (envfile? . :yes) (config? . :yes) (aot?)))
- (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings))
- (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))
- (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings))))
- (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail)))
- (while tail (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail))))
- (let ((tail (nreverse runners))) (while tail (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail)))))
- (let ((seen '(t)) runners) (let ((tail (doom-cli-find command (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2)))))) (while tail (let ((cli (car tail))) (setq runners (cons (cons (doom-cli-get cli) (doom-cli--bindings cli context seen)) runners)) (setq tail (cdr tail))))) (let ((tail (nreverse runners))) (while tail (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail))))) context)
- (cond ((null (or command (doom-cli-get (list prefix) t))) (signal 'doom-cli-invalid-prefix-error (list prefix))) ((let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 8))) (let* ((val (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 8))))) (cond ((equal val '"--version") (let nil (doom-cli-call (cons ':version (cdr command)) context) t)) ((member val '("--help" "-?")) (let nil (doom-cli-call (cons ':help (cdr command)) context) t)) (t (let nil (error "In meta mode with no destination!")))))) ((not (and cli (let* ((cl-x (doom-cli-get cli))) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9))))) (signal 'doom-cli-command-not-found-error (append command (alist-get t (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 14))))))) ((let ((seen '(t)) runners) (let ((tail (doom-cli-find command (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2)))))) (while tail (let ((cli (car tail))) (setq runners (cons (cons (doom-cli-get cli) (doom-cli--bindings cli context seen)) runners)) (setq tail (cdr tail))))) (let ((tail (nreverse runners))) (while tail (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail))))) context)))
- (let* ((command (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 10)))) (cli (doom-cli-get command t)) (prefix (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 7))))) (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "context-execute: %s" (mapconcat #'doom-cli-command-string (delq nil (list (car (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 11)))) command)) " -> ")))) (cond ((null (or command (doom-cli-get (list prefix) t))) (signal 'doom-cli-invalid-prefix-error (list prefix))) ((let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 8))) (let* ((val (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 8))))) (cond ((equal val '"--version") (let nil (doom-cli-call (cons ':version (cdr command)) context) t)) ((member val '("--help" "-?")) (let nil (doom-cli-call (cons ':help (cdr command)) context) t)) (t (let nil (error "In meta mode with no destination!")))))) ((not (and cli (let* ((cl-x (doom-cli-get cli))) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9))))) (signal 'doom-cli-command-not-found-error (append command (alist-get t (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 14))))))) ((let ((seen '(t)) runners) (let ((tail (doom-cli-find command (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2)))))) (while tail (let ((cli (car tail))) (setq runners (cons (cons (doom-cli-get cli) (doom-cli--bindings cli context seen)) runners)) (setq tail (cdr tail))))) (let ((tail (nreverse runners))) (while tail (let ((x22 (car tail))) (progn (ignore (consp x22)) (let* ((x23 (car-safe x22)) (x24 (cdr-safe x22))) (let ((cli x23) (bindings x24)) (doom-cli-execute cli bindings)))) (setq tail (cdr tail))))) context))))
- doom-cli-context-execute(#s(doom-cli-context :init-time (26602 16929 355190 940000) :pid 138282 :step 0 :geometry (208 . 55) :pipes nil :suppress-prompts-p nil :prefix "doom" :meta-p nil :error nil :command ("doom" "env") :path nil :whole ("install") :options (("--deny") ("-d") ("--allow") ("-a") ("-o") ("--deny-all") ("--allow-all") ("--hooks") ("--fonts") ("--install") ("--env") ("--config") ("--aot") ("--eval") ("-E") ("--strict-load") ("--load") ("-L") ("--color") ("--benchmark") ("--profile") ("--pager") ("--emacsdir") ("--doomdir") ("--verbose") ("-v") ("--debug") ("-D") ("--force") ("-!")) :arguments ((t) (("doom" "env")) (("doom") "env")) :stdin #<buffer *doom-cli stdin*> :stdout #<buffer *doom-cli stdout*> :stderr #<buffer *doom-cli stderr*> :state nil))
- (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result))
- (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0)
- (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))
- (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3)))
- (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)
- (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context))
- (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))
- (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context))))
- (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old))
- (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old)))
- (let ((standard-output (doom-print--redirect-standard-output streamspec t))) (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old))))
- (let ((streamspec (list (list '>= 'notice (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 16)))) (cons t (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 17))))))) (let ((standard-output (doom-print--redirect-standard-output streamspec t))) (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old)))))
- (let* ((doomctxt context) (debugger (doom-rpartial #'doom-cli-debugger doomctxt)) (debug-on-error t)) (let ((streamspec (list (list '>= 'notice (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 16)))) (cons t (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 17))))))) (let ((standard-output (doom-print--redirect-standard-output streamspec t))) (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old))))))
- (let* ((args (flatten-list args)) (context (make-doom-cli-context :prefix prefix :whole args)) (doom-cli--context context) (write-logs-fn (doom-partial #'doom-cli--output-write-logs-h context)) (show-benchmark-fn (doom-partial #'doom-cli--output-benchmark-h context))) (let* ((doomctxt context) (debugger (doom-rpartial #'doom-cli-debugger doomctxt)) (debug-on-error t)) (let ((streamspec (list (list '>= 'notice (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 16)))) (cons t (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 17))))))) (let ((standard-output (doom-print--redirect-standard-output streamspec t))) (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old)))))))
- (let ((doom-context doom-context)) (doom-context-push 'run) (let* ((args (flatten-list args)) (context (make-doom-cli-context :prefix prefix :whole args)) (doom-cli--context context) (write-logs-fn (doom-partial #'doom-cli--output-write-logs-h context)) (show-benchmark-fn (doom-partial #'doom-cli--output-benchmark-h context))) (let* ((doomctxt context) (debugger (doom-rpartial #'doom-cli-debugger doomctxt)) (debug-on-error t)) (let ((streamspec (list (list '>= 'notice (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 16)))) (cons t (let* ((cl-x doomctxt)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 17))))))) (let ((standard-output (doom-print--redirect-standard-output streamspec t))) (let* ((vnew (doom-print--redirect-message streamspec (if noninteractive 'debug 'notice))) (old (symbol-function #'message))) (unwind-protect (progn (fset #'message vnew) (let ((doom-print-stream standard-output)) (progn (if (and (not doom-inhibit-log) (or (not noninteractive) (<= 2 doom-log-level))) (progn (doom--log 2 "run!: %s %s" prefix (combine-and-quote-strings args)))) (add-hook 'kill-emacs-hook show-benchmark-fn 94) (add-hook 'kill-emacs-hook write-logs-fn 95) (if (doom-cli-context-pipe-p context :out t) (progn (setq doom-print-backend nil))) (if (doom-cli-context-pipe-p context :in) (progn (save-current-buffer (set-buffer (let* ((cl-x context)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-context-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-context cl-x))) (aref cl-x 15)))) (while (let* ((in (and t (condition-case nil (progn (read-from-minibuffer "")) (error nil))))) (if in (insert in "\n") (condition-case nil (progn (delete-char -1)) (error nil)))))))) (doom-cli--exit (catch 'exit (condition-case e (let* ((args (cons (if (getenv "__DOOMDUMP") :dump prefix) args)) (context (doom-cli-context-restore (getenv "__DOOMCONTEXT") context)) (context (doom-cli-context-parse args context))) (run-hook-with-args 'doom-cli-before-run-functions context) (let ((result (doom-cli-context-execute context))) (run-hook-with-args 'doom-cli-after-run-functions context result)) 0) (doom-cli-wrong-number-of-arguments-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x34 (car-safe val)) (x35 (cdr-safe val))) (progn (ignore (consp x35)) (let* ((x36 (car-safe x35)) (x37 (cdr-safe x35))) (progn (ignore (consp x37)) (let* ((x38 (car-safe x37)) (x39 (cdr-safe x37))) (progn (ignore (consp x39)) (let* ((x40 (car-safe x39)) (x41 (cdr-safe x39))) (progn (ignore (consp x41)) (let* ((x42 (car-safe x41)) (x43 (cdr-safe x41))) (progn (ignore (null x43)) (let ((command x34) (flag x36) (args x38) (min x40) (max x42)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %S expected %s argument%s, but got %d") (or flag (doom-cli-command-string (if (keywordp (car command)) command (cdr command)))) (if (or (= min max) (= max most-positive-fixnum)) min (format "%d-%d" min max)) (if (or (= min 0) (> min 1)) "s" "") (length args))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e))))))))))))))) 5) (doom-cli-unrecognized-option-error (doom-print (doom-print--format (doom-print--style 'red "Error: unknown option %s") (car (cdr e)))) (doom-cli-call (cons ':help (cons "--synopsis" (cons "--postamble" (cdr (doom-cli--command context))))) context e) 5) (doom-cli-invalid-option-error (let* ((val (cdr e))) (progn (ignore (consp val)) (let* ((x44 (car-safe val)) (x45 (cdr-safe val))) (progn (ignore (consp x45)) (let* ((x46 (car-safe x45)) (x47 (cdr-safe x45))) (progn (ignore (consp x47)) (let* ((x48 (car-safe x47)) (x49 (cdr-safe x47))) (progn (ignore (consp x49)) (let* ((x50 (car-safe x49)) (x51 (cdr-safe x49))) (progn (ignore (null x51)) (let ((_types x44) (option x46) (value x48) (errors x50)) (progn (doom-print (doom-print--format (doom-print--style 'red "Error: %s received invalid value %S") (string-join (let* ((cl-x option)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-option-tags) t))) (signal 'wrong-type-argument (list 'doom-cli-option cl-x))) (aref cl-x 5))) "/") value)) (doom-print (doom-print--format (doom-print--style 'bold "\nValidation errors:"))) (let ((tail errors)) (while tail (let ((err (car tail))) (doom-print (doom-print--format (doom-print--class 'item "%s." (doom-print--class 'fill err)))) (setq tail (cdr tail))))))))))))))))) (doom-cli-call (cons ':help (cons "--postamble" (cdr (doom-cli--command context)))) context e) 5) (doom-cli-command-not-found-error (let* ((command (cdr e)) (cli (doom-cli-get command))) (cond ((null cli) (doom-print (doom-print--format (doom-print--style 'red "Error: unrecognized command: %s") (doom-cli-command-string command))) (doom-cli-call (cons ':help (cons "--similar" (cons "--postamble" (cdr command)))) context e)) ((null (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 9)))) (doom-print (doom-print--format (doom-print--style 'red "Error: a subcommand is required"))) (doom-cli-call (cons ':help (cons "--subcommands" (cons "--postamble" (cdr command)))) context e)))) 4) (doom-cli-invalid-prefix-error (let ((prefix (car (cdr e)))) (doom-print (doom-print--format (doom-print--style 'red "Error: `run!' called with invalid prefix %S") prefix)) (let* ((suggested (and t (let* ((--cl-var-- t) --cl-var--) (catch '--cl-block---cl-finish---- (maphash #'(lambda (--cl-var-- cli) (or (if (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 2))) t (progn (setq --cl-var-- (car (let* ((cl-x cli)) (progn (or (let* ((cl-x cl-x)) (progn (and (memq (type-of cl-x) cl-struct-doom-cli-tags) t))) (signal 'wrong-type-argument (list 'doom-cli cl-x))) (aref cl-x 1))))) (setq --cl-var-- nil))) (throw '--cl-block---cl-finish---- nil))) doom-cli--table)) --cl-var--)))) (if suggested (doom-print (doom-print--format "Did you mean %S?" suggested)) (doom-print (doom-print--format "There are no commands defined under %S." prefix))))) 4) (user-error (doom-print (doom-print--format (doom-print--style 'red "Error: %s") (car (cdr e)))) (doom-print (doom-print--format "\nAborting...")) 3))) context)))) (fset #'message old))))))))
- run!("doom" ("install"))
- load-with-code-conversion("/home/jhin/.config/emacs/bin/doom" "/home/jhin/.config/emacs/bin/doom" nil t)
- command-line-1(("--load" "/home/jhin/.config/emacs/bin/doom" "--" "install"))
- command-line()
- normal-top-level()
- x There was an unexpected runtime error
- Message: Error with packages
- Details: ("ws-butler" (file-missing "Opening output file" "No such file or directory" "/home/jhin/.config/emacs/.local/state/logs/cli.doom.250331042001.138282.error"))
- Backtrace:
- (signal doom-package-error ("ws-butler" (file-missing "Opening output file" "No such file or directory" "/home/jhin/.config/emacs/.local/state/logs/cli.doom.250331042003.138282.error")))
- (condition-case e (let ((straight-vc-git-post-clone-hook (cons #'(lambda (&rest --cl-rest--) "\n\n(fn &key COMMIT &allow-other-keys)" (let* ((commit (car (cdr (plist-member --cl-rest-- ':commit)))...
- (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (if force-p nil (let* ((build (if (plist-member recipe :build) (plist-get recipe :build) t...
- (let* ((--cl-rest-- (append (list :recipe recipe) recipe)) (package (car (cdr (plist-member --cl-rest-- ':package)))) (local-repo (car (cdr (plist-member --cl-rest-- ':local-repo)))) (recipe (car ...
- (cl-destructuring-bind (&key package local-repo recipe &allow-other-keys) (append (list :recipe recipe) recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight-...
- (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straight--build-dir package))) (i...
- (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build-dir (straig...
- (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-repo package))) (build...
- (let ((tail recipes)) (while tail (let ((recipe (car tail))) (straight--with-plist (append (list :recipe recipe) recipe) (package local-repo recipe) (let ((repo-dir (straight--repos-dir (or local-...
- (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-package-pre-b...
- (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) straight-use-packag...
- (let* ((built (and t (let* ((recipes recipes) (built nil) (straight-use-package-pre-build-functions (cons #'(lambda (pkg &rest _) (setq built (if (member pkg built) built (cons pkg built)))) strai...
- GNU Emacs v30.1 nil
- Doom core v3.0.0-pre grafted, HEAD -> master, origin/master, origin/HEAD 67933f9 2025-03-31 02:28:39 -0400
- Doom modules v25.04.0-pre grafted, HEAD -> master, origin/master, origin/HEAD 67933f9 2025-03-31 02:28:39 -0400
- ! Wrote extended backtrace to ~/.config/emacs/.local/state/logs/cli.doom.250331042001.138282.error
- ✓ Finished in 3m 54s
Advertisement
Add Comment
Please, Sign In to add comment