Commit graph

403 commits

Author SHA1 Message Date
Itai Y. Efrat
34fae1c01c Remove remaining Emacs27+ checks
- Remove remaining `EMACS27+` checks, since the whole codebase is
  assumed to run at version 27 or above now
- Remove `EMACS27+` definition since it's no longer needed
2021-07-10 16:03:41 +03:00
Henrik Lissner
8ad846e15b Fix #5198: blacklist WSL_INTEROP in envvar file 2021-07-08 15:11:39 -04:00
Henrik Lissner
bd5327f9cc
Merge pull request #5235 from ErnestDong/develop
Filter directories when purging straight repos
2021-07-08 14:10:25 -04:00
Henrik Lissner
044a1a5f2b Drop Emacs 26.x support
Emacs 27.x has been the stable version of Emacs for nearly a year, and
introduces a litany of bugfixes, performance, and quality-of-life
improvements that significantly reduce Doom's maintenance burden (like
XDG support, early-init.el, image manipulation without imagemagick, a
native JSON library, harfbuzz support, pdumper, and others).

With so many big changes on Doom's horizon, I like having one less (big)
thing to worry about.

Also reverts bb677cf7a (#5232) as it is no longer needed.
2021-07-06 02:31:52 -04:00
ErnestDong
8c3a83526b Filter directories when purging straight repos
in macOS there is always an annoying ".DS_Store" in straight/repos,
which breaks `doom purge`
2021-07-05 15:06:54 +08:00
Itai Y. Efrat
f9a1d80936 cli/packages: fix update output on unpinned packages
- don't print output of git command
- count commits and output log
2021-06-04 15:23:25 +03:00
Itai Y. Efrat
46c89d350e cli/packages: fix commit between pins counting
the commit counting introduced in a3df5bf prints `nil` instead of the
empty string when the repo moves from commit A to commit B where A isn't
reachable from B
2021-06-04 15:23:15 +03:00
Henrik Lissner
1a5f4afd0d Reduce minimum required git to 2.23
Thanks to raxod502/straight.el@7ca94a7, which was included in 3329448bd.
This in particular reduces the burden for Ubuntu users.

Relevant to #5088, #5096
2021-06-01 16:08:17 -04:00
Henrik Lissner
a3df5bfa3e cli/packages: count commits between pins 2021-05-29 13:01:52 -04:00
Henrik Lissner
a600e5949b cli/env: blacklist TERMCAP envvar
May be the result of recent "Not a termcap device" error reports.
2021-05-28 13:39:14 -04:00
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