Commit graph

552 commits

Author SHA1 Message Date
Henrik Lissner
c5e3f4d632 New autoload/system.el core library 2021-03-01 22:27:17 -05:00
Henrik Lissner
1274de3d34 Minor reformatting & refactors across the board 2021-02-25 13:59:43 -05:00
Henrik Lissner
3894611a8f Minor comment revision 2021-02-21 14:44:59 -05:00
Henrik Lissner
0ff85015f8 s/defadvice!/advice-add in comp config block
Part 2 of 811099282.

The latest build of native-comp appears to eagerly load comp very early,
so defadvice! won't be defined when this block runs, causing this error.
2021-02-11 23:33:28 -05:00
Henrik Lissner
8110992829 s/doom-partial/apply-partially
comp is loaded earlier on some builds of native-comp, for some reason?
2021-02-11 13:36:55 -05:00
Henrik Lissner
3a4f182a3c Revise core docstrings & comments 2021-01-27 03:36:53 -05:00
Henrik Lissner
20e74206a8
Merge pull request #4531 from jbampton/fix-spelling
Fix spelling
2021-01-27 02:36:44 -05:00
Henrik Lissner
bb4d17efb7 Revert 8bac3bc6c, a9e6f8883
Add evil-collection-vterm and with-editor to comp blacklist.

Fixes #4517
2021-01-18 17:45:29 -05:00
John Bampton
583f854298 Fix spelling 2021-01-18 02:16:45 +10:00
Henrik Lissner
5cb2395e08
Set custom-theme-directory in core-ui 2021-01-10 08:07:27 -05:00
Henrik Lissner
8bac3bc6c6
Remove with-editor from comp blacklist 2021-01-09 04:12:54 -05:00
Henrik Lissner
a9e6f88831
Remove evil-collection-vterm from comp blacklist
Issue was fixed upstream in native-comp branch.
2021-01-09 03:10:43 -05:00
Henrik Lissner
cae1766d8e
redisplay-skip-fontification-on-input = t
This setting was introduced recently in Emacs HEAD.
2021-01-07 01:43:17 -05:00
Henrik Lissner
55e90f064f
Load gcmh-mode a little sooner
Ensures it is loaded in time when files are loaded directly from the
terminal.
2020-12-11 01:41:38 -05:00
Henrik Lissner
b5e948054c
Refactor & reformat core.el
Backport a bit of core.el from our CLI rewrite.
2020-12-02 17:58:09 -05:00
Henrik Lissner
affd076d53
Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
Henrik Lissner
c517be8e69
Advise locate-user-emacs-file to use doom-etc-dir
This is commonly used in Emacs packages to resolve to a location in
`~/.emacs.d`, as storage or a cache. Rather than addressing each
file/directory variable as they are encountered, better to address this
at the source.

Also: this makes some file/directory settings redundant, so they were
removed.

Closes #4347
2020-12-01 13:53:10 -05:00
Henrik Lissner
cd88f6528e
Refactor MODE-local-var-hook trigger 2020-11-30 23:35:03 -05:00
Henrik Lissner
77924c8feb
Remove tab-prefix-map fix
Since we've bumped project.el in the :tools lsp module, which was the
cause of this error to begin with.
2020-11-29 15:01:44 -05:00
Henrik Lissner
b91a1b3e7b
Extract CPU counting to doom-num-cpus function
And improves macOS support as discussed in hlissner/doom-emacs@db6a27c
2020-11-29 14:49:14 -05:00
Henrik Lissner
b49c40bbb3
Minor refactors & comment revision 2020-11-29 14:37:32 -05:00
Henrik Lissner
db6a27c37c
native-comp: use all cores instead of half 2020-11-29 14:25:12 -05:00
Henrik Lissner
6dc84f1671
Remove backwards compatibility for native-comp
It's too much hassle to wrestle with. If you're on native comp, you
revert to hlissner/doom-emacs@c83e5e75e until you can update.

Fixes #4317 (again)
2020-11-25 14:55:26 -05:00
Henrik Lissner
90f16eaa76
Fix #4317: wrong-type-arg: number-or-marker-p many
Caused by a func-arity call on an advised function (returns the arity of
the advice, rather than the advised function itself).
2020-11-25 13:49:17 -05:00
Andrew Whatson
d3e08c5d0b Update for the latest native-compile-async API
Renamed `comp-deferred-compilation-black-list` to
`comp-deferred-compilation-deny-list`.

Removed the `late` load flag which is no longer required.

Added a check against the deny list when compiling all Elisp on the
load-path, so we don't inadvertently compile something we shouldn't.

Added compatibility shims to ease transition from older builds of
native-comp.
2020-11-25 14:17:01 +10:00
Henrik Lissner
db16e5c03e
Fix error if autoloads file is missing at startup
Should warn the user to run 'doom sync' if the autoloads file is
missing, but was giving a less helpful, generic error instead.
2020-11-20 14:10:29 -05:00
Henrik Lissner
4dab595ad3
Minor refactors & comment revision 2020-11-20 14:10:29 -05:00
Han Mertens
a56f58d4ab Prevent native compilation for emacs-jupyter
Something in jupyter-channel.el does not get compiled correctly and
raises void-variable jupyter-channel errors.
2020-11-17 20:48:34 +01:00
Andrew Whatson
e9394c7c06 Add with-editor.el to the compilation black-list 2020-11-16 14:52:41 +10:00
Henrik Lissner
9ce9c6838e
Add emacs version to autoloads file path
Prevents stale byte-code across Emacs versions.

Relevant to #4172
2020-10-29 01:42:04 -04:00
Henrik Lissner
9e1ac0c0be
Reduce active message-log-max; scale in debug mode
8kb of log isn't really necessary. We'll scale it up when debug mode is
on, instead.
2020-10-26 05:51:12 -04:00
Henrik Lissner
f92f4aab97
Fix file-handlers for daemon sessions 2020-10-21 11:18:47 -04:00
Henrik Lissner
b461f76b0d
Fix *-local-vars-hook & doom-first-*-hook not triggering
When starting Emacs with a file path argument these hooks aren't set up
in time for the file to be processed.

Fixes #3891, #4082, #4104
2020-10-16 23:08:56 -04:00
Henrik Lissner
35185b2175
Split doom-reload-hook into before/after hooks 2020-10-16 22:28:08 -04:00
Henrik Lissner
3f24fc3737
regexp-quote comp blacklist entries 2020-10-11 16:41:05 -04:00
Andrew Whatson
2e07a85590 Native-compile everything on load-path
Add an extra pass to `doom build` to queue native compilation of all
packages on `load-path`. This ensures that all core and site Elisp
packages are actually native-compiled, even on "fast boot" builds.

Add `.local/autolads.el` to the blacklist as native-compiling this file
succeeds, but prevents emacs from starting up.

Revise the evil-collection-vterm blacklist entry to use a more efficient
regex.

Fix a bug where an updated .error file wasn't always written, causing
spurious rebuilds.
2020-10-09 09:34:34 +10:00
Andrew Whatson
1d0f1575aa Remove comp-eln-load-path injection hack
This was fixed upstream, so comp-eln-load-path is now passed to async
compilation workers.
2020-10-09 09:34:34 +10:00
Henrik Lissner
29b12de83e
Fix #3901: unset comp-deferred-compilation later 2020-10-06 02:08:17 -04:00
Henrik Lissner
8f64a0eb31
Fix #3871: void-function doom-autoload-error
Due to calling an error as if it were a function.
2020-08-31 00:01:34 -04:00
Henrik Lissner
a986621a5f
Revert 70148bb
Fixes #3829
Relevant to #3691
2020-08-25 01:57:00 -04:00
Henrik Lissner
e632871a11
core-cli: backport more refactors from rewrite
Still a long way to go, but this introduces a few niceties for
debugging CLI failures:

+ The (extended) output of the last bin/doom command is now logged to
  ~/.emacs.d/.local/doom.log
+ If an error occurs, short backtraces are displayed whether or not you
  have debug mode on. The full backtrace is written to
  ~/.emacs.d/.local/doom.error.log.
+ bin/doom now aborts with a warning if:
  - The script itself or its parent directory is a symlink. It's fine if
    ~/.emacs.d is symlinked though.
  - Running bin/doom as root when your DOOMDIR isn't in /root/.
  - If you're sporting Emacs 26.1 (now handled in the elisp side rather
    than the /bin/sh shebang preamble).
+ If a 'doom sync' was aborted prematurely, you'll be warned that Doom
  was left in an inconsistent state and that you must run `doom sync`
  again.

May address #3746
2020-08-24 23:00:32 -04:00
Henrik Lissner
70148bbfc8
Inhibit local-vars hooks when reverting
Possibly addresses #3691
2020-08-21 00:03:01 -04:00
Henrik Lissner
995b45285c
core: revise & clarify comments 2020-08-20 03:35:29 -04:00
Henrik Lissner
c74f8170b6
Remove mac-specific packages from core
Now that they're in :os macos
2020-08-20 03:33:35 -04:00
Henrik Lissner
dddfd9a7b1
Fix #3787: only inhibit some hooks for org-src ops
Inhibiting all MAJOR-MODE-hook functions (to fix #3660) would mean
inhibiting some useful functionality, like indentation or syntax
highlighting modes. We only want to inhibit expensive hooks. Since Doom
adds these to MAJOR-MODE-local-vars-hook by convention, we can
selectively inhibit those instead.
2020-08-20 02:30:06 -04:00
Henrik Lissner
394a18096e
Disable comp-deferred-compilation in early-init.el 2020-08-18 20:32:34 -04:00
Henrik Lissner
58af4aef56
Fix #3772 (again): void-variable comp-eln-load-path 2020-08-18 02:51:53 -04:00
Henrik Lissner
3d622101cb
Fix #3772: void-variable doom-reloading-p
This wasn't necessary in the first place. doom/reload doesn't re-read
Doom's core.
2020-08-18 02:44:03 -04:00
Henrik Lissner
ed25ab76f9
Respect comp-eln-load-path in comp async process
Thanks to @SwiftLawnGnome in hlissner/doom-emacs@295f806
2020-08-18 00:46:41 -04:00
Henrik Lissner
a2da5d7a6f
Fix void-variable comp-eln-load-path error
For users on older versions of gccemacs.
2020-08-17 21:25:34 -04:00