Commit Graph

170 Commits

Author SHA1 Message Date
Henrik Lissner
297728bf74
Generalize doom-file-cookie-p
And move it to doom-file-cookie-p for anyone to use.
2019-10-04 22:42:53 -04:00
Henrik Lissner
d297dc6934
Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
Henrik Lissner
018fc8318d
cli/env: ignore TERM envvar 2019-09-30 16:47:32 -04:00
Henrik Lissner
45240699e0
Remove doom-elpa-dir variable
And just use package-user-dir. No need for two variable when one will
do.
2019-09-26 14:26:47 -04:00
Sean Farley
686e020287 cli: add documentation string about new flags 2019-09-22 14:34:40 -07:00
Sean Farley
85ea924595 cli: fix wrong argument being sent to doom-upgrade
In 84837fa0d, a new argument was added before the timeout arg which
broken this flag.
2019-09-22 14:34:22 -07:00
Henrik Lissner
497fd08af7
Remove 'doom patch-macos' command
'doom env' has long since replaced it. Nobody should be using
patch-macos anymore.
2019-09-22 12:00:22 -04:00
Henrik Lissner
ed1943ba0a
Install buttercup through straight for tests 2019-09-20 18:15:25 -04:00
Henrik Lissner
f03eb67314
Fix 'doom rebuild' generating broken autoloads
Causes errors about being unable to find general.el
2019-09-20 01:23:58 -04:00
Henrik Lissner
18329fdeaf
Add switch docs in update & purge commands 2019-09-12 17:25:54 -04:00
Henrik Lissner
84837fa0d6
Add --threads option to 'doom update' #1736 2019-09-12 17:25:54 -04:00
Henrik Lissner
ab954439e8
Label 'doom env' errors as warnings
Because they can usually be ignored.
2019-09-12 17:25:54 -04:00
Henrik Lissner
5caa6add5c
Make 'doom upgrade' respect -y/--yes switches 2019-09-12 17:25:54 -04:00
Henrik Lissner
4fda7cd287
Don't auto-purge ELPA packages on 'doom refresh'
...or 'doom purge', without the -e or --elpa switches (or --all).
2019-09-09 23:04:07 -04:00
Henrik Lissner
4045827d61
Mention doom env's -o switch in envvar file header 2019-09-09 13:51:36 -04:00
Henrik Lissner
51e950cc5c
Display absolute paths in 'doom env' output
To make it clearer where the envvar file is saved to.
2019-09-09 13:44:12 -04:00
Henrik Lissner
ec81fc30a4
Minor correction to comment 2019-09-08 20:56:50 -04:00
Henrik Lissner
a44e9153d3
Fix #1764: 'doom autoload' generating broken autoloads.pkg.el
Due to missing straight state that is properly initialized for 'doom
refresh' (by doom-packages-install), but not for 'doom autoloads'.
2019-09-08 20:52:30 -04:00
Henrik Lissner
d308cedf95
Update help output for 'doom install' 2019-09-08 20:41:22 -04:00
Henrik Lissner
f6b8807e83
Add -o option to 'doom env'
Now you can output envvar files where ever you like.
2019-09-05 14:20:50 -04:00
Henrik Lissner
9f08d11908
Also delete autoloads.pkgs.el on 'doom upgrade' 2019-09-05 14:06:52 -04:00
Henrik Lissner
005647fd64
Fix wrong-type-arg package-desc error on 'doom refresh' 2019-09-03 14:07:09 -04:00
Henrik Lissner
d9b6bf9438
Add doom-core-dir to load-path for child test processes 2019-09-03 01:53:29 -04:00
Henrik Lissner
338b72b898
Refactor test launcher 2019-09-03 01:47:32 -04:00
Henrik Lissner
81ee250c09
Minor refactor & revision across the board 2019-09-03 00:59:46 -04:00
Henrik Lissner
4ce86b06d4
Use more ambiguous reset target when normalizing repos
Possibly addresses "ambiguous target" errors during 'doom update'.

Might address #1738 and #1721
2019-09-03 00:59:46 -04:00
Henrik Lissner
059ede53b6
Update all unit tests
To meet changes introduced from the straight branch merge.
2019-09-03 00:59:46 -04:00
Henrik Lissner
65d3406e27
Fix various errors during 'doom compile' 2019-09-03 00:38:04 -04:00
Henrik Lissner
4b736bef68
Introduce doom-interactive-mode
As soft inverse alias for noninteractive; this makes it easier to unit
test functionality that depends on the session type.
2019-09-03 00:37:30 -04:00
Henrik Lissner
49fb34d1c1
Fix 'doom purge' trying to purge site packages
It should only manage packages installed in
doom-elpa-dir (~/.emacs.d/.local/elpa, by default).
2019-09-02 13:12:57 -04:00
Sean Farley
c55676d221 cli/upgrade: add timeout flag
Since there is a lot of logic in `bin/doom upgrade` than just running
two commands, I thought we should also add a timeout flag just like
`update` has.
2019-08-29 17:03:42 -07:00
Henrik Lissner
aad0b2f842
Change how unit tests are set up and run
Moves init.test.el to core/test/init.el and initializes the test
environment from within the current session, rather than through a bash
script middle man.

TODO: don't buffer the unit test results
2019-08-27 00:07:01 -04:00
Henrik Lissner
8ac1e1a781
Refactor doom init process
- Refactors doom-initialize
- Moves doom-initialize-modules call to init.el, to more easily isolate
  it during unit testing.
2019-08-27 00:05:12 -04:00
Henrik Lissner
465122320d
Byte-compile Doom in the correct order
That is, modules should be byte-compiled in the order they're in in your
doom! block.
2019-08-23 20:30:39 -04:00
Henrik Lissner
9d0966e94a
Forcibly refresh doom after 'doom upgrade'
Ensures autoloads files are regenerated.
2019-08-23 01:56:43 -04:00
Henrik Lissner
025a4c3d26
Properly reset packages on 'doom update'
Prevents some cases of infinite hanging while updating certain packages.
2019-08-22 16:13:23 -04:00
Henrik Lissner
e502031412
Fix 'doom purge' not regrafting all repos on first use 2019-08-22 16:12:22 -04:00
Henrik Lissner
eb567f51c8
Handle git submodules from 'doom update' 2019-08-22 13:02:24 -04:00
Henrik Lissner
94ba098e43
Normalize package before checks in 'doom update'
This reduces the likelihood that straight will throw up invisible
popups, blocking the update process indefinitely.
2019-08-21 18:34:55 -04:00
Henrik Lissner
b854a089eb
Sort & optimize package list on 'doom purge' 2019-08-18 11:24:44 -04:00
Henrik Lissner
2b3f522858
Update :recipe example in dummy packages.el
Deployed by `doom quickstart`/`doom install`
2019-08-17 16:04:26 -04:00
Henrik Lissner
d298a8e71c
Update envvar file comment header
Envvar files are now refreshed on `doom refresh`, if it exists. A while
back I removed the `doom env reload` step.
2019-08-15 17:29:08 -04:00
Henrik Lissner
5aa7415d87
Add -t/--timeout switch to 'doom update'
To get around timeout issues on slower connections or larger packages.
2019-08-15 01:34:28 -04:00
Henrik Lissner
b29a7ba8fe
Fix 'doom compile'
Fixes `void-function define-key!` error.
2019-08-15 01:33:40 -04:00
Henrik Lissner
2cd9685758
Discard timed out future correctly on 'doom update'
And list packages immediately after message (no newlines).
2019-08-09 22:23:38 -04:00
Henrik Lissner
624c5e1a71
Complain about unknown targets in 'doom compile' #1657 2019-08-09 22:23:37 -04:00
Henrik Lissner
0a44881df1
Increase number of sub-processes for 'doom update' 2019-08-08 23:00:54 -04:00
Henrik Lissner
c266680c11
Fix #1653: uncaught error when async process times out 2019-08-08 22:59:57 -04:00
Henrik Lissner
115a436273
Fix 'doom update' for chemacs users
Or users who have Doom in a non-standard location (i.e. outside
~/.emacs.d).
2019-08-08 11:48:13 -04:00
Henrik Lissner
ef60762a92
Fix wrong-type-arg: listp error on 'doom update'
Caused when async fails to create a child process for a certain group of
packages (needs to be investigated more).
2019-08-07 21:07:43 -04:00