Henrik Lissner
f604ce6d01
Minor refactors & reformatting
2021-05-25 10:35:21 -04:00
Henrik Lissner
7b5baf319b
Fix #5093 : git version doctor check on macOS
...
git version's output is formatted differently on macOS (because of
course it is), so I use a more flexible check.
2021-05-25 10:35:21 -04:00
Henrik Lissner
592116cece
cli/doctor: add git and git 2.28 check
...
Also:
+ Refactors hard dependency checks
+ Improve warnings for 26.x and 28.x users
Mentioned in #5088
2021-05-24 14:54:33 -04:00
Henrik Lissner
e5b52e2a50
Remove "fix" for projectile + $HOME git repos
...
There are legitimate reasons why a user would want to treat $HOME as a
project. 'doom doctor' now complains about this case in greater detail.
I'll leave it to users to deal with this edge case.
2021-05-23 22:09:07 -04:00
Henrik Lissner
3ba364ae10
Minor refactoring across the board
2021-05-23 22:09:07 -04:00
Henrik Lissner
a8e57438dc
Refactor doom-{path,file,dir,glob}
...
Breaking change: doom-glob would formerly return a string (if only one
match) or a list. Now it always returns a list.
2021-05-23 21:49:02 -04:00
Henrik Lissner
13f316e645
Fix packages evading native-compilation
...
(featurep 'nativecomp) will never return t.
2021-05-23 21:49:02 -04:00
Henrik Lissner
4b5cf7d46f
bin/doom: polish output
...
Reduces the amount of "noise" included in bin/doom's output.
Also fixes an issue where warnings during autoloads generation would
sneak into Doom's autoloads file, producing weird void-variable errors,
like
(void-variable . rainbow-delimiters:)
(void-variable . diredfl:)
(void-variable . company:)
2021-05-23 21:49:02 -04:00
Hyunggyu Jang
fef242aa34
Fix bin/doom compile error introduced by e2a11d24fd
...
With a commit of e2a11d24fd
, when it comes to
`doom compile`, modules aren't loaded anymore, which corrupts the compiling process.
What I did is just adding the necessity parts for the doom's byte compiler.
2021-05-12 14:08:51 +09:00
Henrik Lissner
b092d79d35
Fix reference to comp-deferred-compilation-deny-list
2021-05-12 00:50:17 -04:00
Henrik Lissner
6ad4f0698e
Fix #4995 : adapt to more renamed comp-* symbols
...
Two more variables were renamed upstream.
2021-05-11 19:03:18 -04:00
Henrik Lissner
62d2f27510
Fix references to comp-eln-load-path
2021-05-08 18:56:40 -04:00
Henrik Lissner
27e9c756ea
Fix references to comp-async-cu-done-hook
...
Was renamed upstream to native-comp-async-cu-done-functions at some
point.
2021-05-08 14:57:42 -04:00
Henrik Lissner
e2a11d24fd
core: minor refactors and comment revisions
2021-05-06 18:36:32 -04:00
Henrik Lissner
48322af020
doom upgrade: delete straight if recipe changed
...
By deleting straight, the latest pinned version will be reinstalled on
the second part of the 'doom upgrade' process.
This is a clumsy fix for a catch 22 where using straight to update
straight would break due to backwards incompatibilities (see #4950 ).
This will do while we wait for the CLI rewrite.
2021-05-06 04:27:33 -04:00
Henrik Lissner
df10383a26
Use symbol plists instead of internal variables
...
More in line with Emacs' built-in practice of storing a variable's
standard-value in a symbol property of the same name, with the added
benefit of less global state.
2021-05-06 04:27:33 -04:00
Ian Davids
4c212b7321
Fixing windows pathway to use latest straight API
2021-04-30 17:08:31 -07:00
Henrik Lissner
f60f576048
Bump :core
...
Fuco1/smartparens@63695c6 -> Fuco1/smartparens@25f4d6d
bbatsov/projectile@1528ed4 -> bbatsov/projectile@513228f
domtronn/all-the-icons.el@a8c8417 -> domtronn/all-the-icons.el@7a12258
emacs-straight/so-long@a5d445d -> emacs-straight/so-long@1da43ed
jscheid/dtrt-indent@37529fc -> jscheid/dtrt-indent@9714f2c
justbur/emacs-which-key@c632dbf -> justbur/emacs-which-key@5fb3030
raxod502/straight.el@0f9b828 -> raxod502/straight.el@253d7db
Fixes #4947 (needed raxod502/straight.el@0831f6b )
Also includes fixes due to straight changing its logging API.
2021-04-29 17:24:40 -04:00
Henrik Lissner
43623d7c5e
Fix #4947 : naive native-comp checks
...
Now, checking for the comp package is no longer sufficient to determine
if native-compilation is enabled.
2021-04-29 13:25:48 -04:00
Henrik Lissner
44a501911b
cli/env: fix whitelist not shadowing blacklist
...
If an ENVVAR was in the blacklist, it was omitted even if it matched a
whitelist rule.
2021-04-29 13:25:48 -04:00
Henrik Lissner
5b3f52f5fb
Fix missing doom.error.log and silent straight errors
2021-03-22 21:11:22 -04:00
Henrik Lissner
a2ccae917e
doom compile: add warning
2021-03-21 00:42:49 -04:00
Henrik Lissner
763d0b670c
Change envvar file format
...
Storing it as a sexp eliminates the need to parse it.
Fixes #4802
2021-03-21 00:42:49 -04:00
Henrik Lissner
e9c4c7471c
Reorganize CLI libraries
2021-03-12 17:55:41 -05:00
Henrik Lissner
cf44c43f41
Simplify doctor's native JSON detection
2021-03-07 14:33:11 -05:00
Henrik Lissner
6b173c5cc5
Remove mention of removed -p in 'doom help install'
...
This option was removed some time ago. Setting the DOOMDIR envvar is the
canonical way to do this now.
Fixes #4643
2021-03-06 15:06:09 -05:00
Henrik Lissner
1274de3d34
Minor reformatting & refactors across the board
2021-02-25 13:59:43 -05:00
Henrik Lissner
1a92dcab7e
Blacklist XAUTHORITY from envvar files
...
XAUTHORITY is likely to become stale if persisted across sessions.
2021-02-21 14:44:59 -05:00
Henrik Lissner
0df791469d
Resolve symlinks in autoloads files
...
For marginally faster package load times.
2021-02-11 23:00:49 -05:00
Henrik Lissner
5d0f781062
Add doom-autoloads-excluded-files variable
...
So specific/problematic files can be omitted from autoloads.
2021-02-11 23:00:11 -05:00
Henrik Lissner
3a7be7bb4f
Fix #4602 , part 2!
2021-02-01 02:45:45 -05:00
Henrik Lissner
a61758523d
Fix #4602 : void-variable straight--build-default-steps
2021-02-01 02:31:22 -05:00
Henrik Lissner
7fcf2c2025
doom {build,purge}: reduce unnecessarily loud output
...
These lines don't add anything, and shouldn't be highlighted as
"success" messages.
2021-01-31 20:41:17 -05:00
MithicSpirit
d3112b5dfc
Doom Doctor: Fix insteadOf check
...
Always triggers when it's correct and never triggers when it's
incorrect.
2021-01-31 13:14:19 -05:00
Henrik Lissner
026d961985
doom doctor: fix insteadOf check #2679
...
I got the source and destination urls mixed up.
2021-01-31 04:34:46 -05:00
Henrik Lissner
05aa13ea19
doom purge: make repo regrafting opt-out
...
Was originally opt-in.
2021-01-31 04:30:48 -05:00
Henrik Lissner
07f134b10e
doom purge: delete old ELN directories
2021-01-31 04:30:48 -05:00
Henrik Lissner
1650e25794
doom doctor: warn about insertOf rules in gitconfig
...
Closes #2679
2021-01-31 04:30:48 -05:00
Henrik Lissner
75549f5743
Fix doom build skipping some packages
2021-01-31 04:30:48 -05:00
Henrik Lissner
2d718cc86f
Remove eager native compilation of subr-trampolines
...
This was fixed upstream.
2021-01-27 03:37:55 -05:00
Henrik Lissner
47f222a61f
Fix #4558 : void-variable comp-native-version-dir
...
Occurs for non-gccemacs users due to aggressive negation if (car build)
== :not
2021-01-27 03:00:41 -05:00
Sheng Yang
181379c006
Fix typo
2021-01-27 01:08:47 -06:00
Henrik Lissner
3f2c4b80e9
Add Emacs 26.x warning to doctor checks
...
We'll be dropping support for it in the next few months.
2021-01-10 05:02:00 -05:00
Henrik Lissner
cfb8a866dc
Bump :core
...
Fuco1/smartparens@7f5825d -> Fuco1/smartparens@63695c6
bbatsov/projectile@d1cfad0 -> bbatsov/projectile@c31bd41
domtronn/all-the-icons.el@6917b08 -> domtronn/all-the-icons.el@9aa16ae
iqbalansari/restart-emacs@e570749 -> iqbalansari/restart-emacs@1607da2
jscheid/dtrt-indent@a7ade6d -> jscheid/dtrt-indent@854b9a1
justbur/emacs-which-key@ca268fd -> justbur/emacs-which-key@428aedf
jwiegley/use-package@caa92f1 -> jwiegley/use-package@365c73d
raxod502/straight.el@3277e1c -> raxod502/straight.el@a32c97c
+ Closes #4513
+ Fixes (wrong-number-of-arguments (3 . 4) 2) error for users on Emacs
HEAD (see bbatsov/projectile#1635 ).
+ package! :build semantics have changed due to upstream changes. What
was :build is now :pre-build. What was :no-build is now :build nil.
+ Now we must be careful not to auto-disable the "use-package" psuedo
theme. It is used as a place to store :custom assignments without them
being saved to custom.el.
2021-01-09 02:55:09 -05:00
Henrik Lissner
1f3530da6f
Remove gh from excluded packages for autoloads
...
Fixed upstream.
2020-12-23 15:34:15 -05:00
Henrik Lissner
8c397902bc
Fix #4432 : comp-deferred-compilation-{black,deny}-list
2020-12-14 16:48:14 -05:00
Henrik Lissner
3c8a2a655f
Fix envvar file encoding for Windows users
2020-12-11 15:50:02 -05:00
Rudi Grinberg
9350beb544
Upgrade: remove leftover ref
...
The upgrade process leaves a left over ref:
```
$ git branch
..
_upgrade_HEAD
..
```
This commit deletes that.
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-12-01 15:06:15 -08:00
Kirill A. Korinsky
be923535fa
upgrade.el: force fetch
...
`doom-cli-upgrade` calls `git fetch` to fetch remote branch and tags and
check output code of this command to complain when it failed.
It fails when remote server isn't available that is good.
But it also fails when it can't to fast-forward a branch that will be
used to upgrade doom-emacs.
The last case created a loop and the only way to broke this loop is
remote a branch that should be used for upgrade.
Unfortunately user has no idea about branch name and can't do anything,
just enjoy crash with `Failed to fetch from upstream` message.
This commit added `--force` flag to `git fetch` that forces it to
overwrite branch that is used to upgrade that prevent such loop.
It also fixed https://github.com/hlissner/doom-emacs/issues/4346
2020-12-01 21:19:48 +01:00
Henrik Lissner
affd076d53
Minor refactors & reformatting
2020-12-01 13:53:46 -05:00