Commit Graph

1024 Commits

Author SHA1 Message Date
09c6e99e23 Fix 'Cannot get this file-path' when bumping in babel edit buffers
Break glass in case of literate configs.
2020-05-25 01:19:03 -04:00
196490c772 Improve UX & output of doom/bump-* commands 2020-05-20 15:33:55 -04:00
f0e6ede81b Relax how strict doom/bump-package-at-point is about point
This command would formerly work only if the point was on the opening
parenthesis, and sometimes insert the :pin in odd places. It is now much
more relaxed.
2020-05-19 22:00:20 -04:00
df0bca6579 Fix doom/bump-module for :private packages 2020-05-19 19:11:02 -04:00
92b98bed11 Fix doom/help-search-loaded-files
Would throw a string type error because load-history doesn't only
contain sublists whose CARs are strings.
2020-05-19 17:33:57 -04:00
2b8388079b Fix doom/bump-module command
Also allows you to bump :core now.
2020-05-15 05:37:10 -04:00
ea18c83c0a General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
0e851ace9b Backport bits of CLI rewrite
The rewrite for Doom's CLI is taking a while, so I've backported a few
important changes in order to ease the transition and fix a couple bugs
sooner.

Fixes #2802, #2737, #2386

The big highlights are:

- Fix #2802: We now update recipe repos *before* updating/installing any
  new packages. No more "Could not find package X in recipe repositories".

- Fix #2737: An edge case where straight couldn't reach a pinned
  commit (particularly with agda).

- Doom is now smarter about what option it recommends when straight
  prompts you to make a choice.

- Introduces a new init path for Doom. The old way:
  - Launch in "minimal" CLI mode in non-interactive sessions
  - Launch a "full" interactive mode otherwise.
  The new way
  - Launch in "minimal" CLI mode *only* for bin/doom
  - Launch is a simple mode for non-interactive sessions that still need
    access to your interactive config (like async org export/babel).
  - Launch a "full" interactive mode otherwise.

  This should fix compatibility issues with plugins that use the
  async.el library or spawn child Emacs processes to fake
  parallelization (like org's async export and babel functionality).

- Your private init.el is now loaded more reliably when running any
  bin/doom command. This gives you an opportunity to configure its
  settings.

- Added doom-first-{input,buffer,file}-hook hooks, which we use to queue
  deferred activation of a number of packages. Users can remove these
  modes from these hooks; altogether preventing them from loading,
  rather than waiting for them to load to then disable them,
  e.g. (after! smartparens (smartparens-global-mode -1)) -> (remove-hook
  'doom-first-buffer #'smartparens-global-mode)

  Hooks added to doom-first-*-hook variables will be removed once they
  run.

  This should also indirectly fix #2386, by preventing interactive modes
  from running in non-interactive session.

- Added `doom/bump-*` commands to make bumping modules and packages
  easier, and `doom/bumpify-*` commands for converting package!
  statements into user/repo@sha1hash format for bump commits.

- straight.el is now commit-pinned, like all other packages. We also
  more reliably install straight.el by cloning it ourselves, rather than
  relying on its bootstrap.el.

  This should prevent infinite "straight has diverged from master"
  prompts whenever we change branches (though, you might have to put up
  with it one more after this update -- see #2937 for workaround).

All the other minor changes:

- Moved core/autoload/cli.el to core/autoload/process.el
- The package manager will log attempts to check out pinned commits
- If package state is incomplete while rebuilding packages, emit a
  simpler error message instead of an obscure one!
- Added -u switch to 'doom sync' to make it run 'doom update' afterwards
- Added -p switch to 'doom sync' to make it run 'doom purge' afterwards
- Replace doom-modules function with doom-modules-list
- The `with-plist!` macro was removed, since `cl-destructuring-bind`
  already serves that purpose well enough.
- core/autoload/packages.el was moved into core-packages.el
- bin/doom will no longer die if DOOMDIR or DOOMLOCALDIR don't have a
  trailing slash
- Introduces doom-debug-variables; a list of variables to toggle on
  doom/toggle-debug-mode.
- The sandbox has been updated to reflect the above changes, also:
  1. Child instances will no longer inherit the process environment of
     the host instance,
  2. It will no longer produce an auto-save-list directory in ~/.emacs.d
2020-05-15 01:33:52 -04:00
4f27d8e774 Fix #3070: project scratch buffers not persistent 2020-05-08 15:08:25 -04:00
cb8b66dd36 Remove old persisted scratch buffer file
This was for backward compatibility with the old format. Removing this
now after two months being deprecated.
2020-05-08 14:44:48 -04:00
fd342dfdb0 Fix #2982: multiple instances of Emacs on restart
When invoking a restart during a restart (Yo dawg...)
2020-05-03 19:49:18 -04:00
0c3ffbbb25 Fix wrong-type-arg arrayp error on doom/help search commands
The org crawler assumed that no headings were empty, which led to errors
when they were.
2020-05-03 16:38:44 -04:00
4b28e9ce86 Rework & polish doom-store library
+ Add doom-store-rem
+ Add real doom-store-member-p (to replace doom-store-exists alias)
+ Fix doom-store-clear not clearing in-memory store
+ Add doom-store-flush
+ Add deferred flushing through doom--inhibit-flush lexical var
+ Update doom-store-persist & doom-store-desist for new API
2020-05-02 19:32:02 -04:00
29c0781916 Fix doom-store library
And rename doom-store-set -> doom-store-put to be more consistent with
the underlying operation.
2020-05-02 13:17:10 -04:00
29e91a6ff6 Replace doom-cache library with doom-store
And remove persistent-store dependency.
2020-05-02 00:14:08 -04:00
61b7368d49 Add a few missing modes to hdm alist
Rule was mostly to add major-modes defined by packages bundled in the module
2020-05-01 02:03:04 +02:00
ba8892d7e9 Fix #3004: stale root cache on project search 2020-04-30 19:02:20 -04:00
d12752324a Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
c1127a5bde Rewrite move/copy/delete file commands
To use rename-file, copy-file and delete-file, so these commands can
enjoy the benefits of any plugins that have advised these, like org-roam
does for rename-file.
2020-04-27 01:51:18 -04:00
08d0eae595 Merge pull request #2925 from rushsteve1/develop
doom/upgrade use -y CLI flag
2020-04-24 00:11:48 -04:00
06d5d5e6c0 General refactors, reformatting & comment revision 2020-04-23 23:56:17 -04:00
2d766cfa0c Remove :lang assembly
This module is too trivial, and provides nothing that the user couldn't
install themselves.
2020-04-23 23:28:50 -04:00
5c340a670c doom/upgrade use -y CLI flag
When using the internal doom/upgrade command to upgrade using the CLI
tool, do so with the -y flag.

This is admittedly a temporary solution, but without it the CLI tool
will prompt for confirmation, which cannot easily or obviously be given
while inside Emacs.
A better solution would be to somehow integrate the prompt so that it
appears in the minibuffer as normal Emacs prompts do. But for now this
at least fixes doom/upgrade.
2020-04-17 13:16:53 -04:00
778652bfd6 Fix void-function doom-try-hook
This snuck into a recent commit, but the function hasn't been renamed
yet.
2020-04-17 03:20:38 -04:00
b78c862e98 Refactor compile macro in doom/reload-* commands 2020-04-14 19:49:20 -04:00
93ff95c06e Refactor sudo commands 2020-04-14 19:13:56 -04:00
61b3cd8818 Fix doom/sudo-save-buffer not writing changes 2020-04-14 19:12:52 -04:00
8f3045b147 Load incrementally deferred packages on doom/reload 2020-04-14 01:47:20 -04:00
b78fc4eb76 Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
8f685a3c31 Fix #2756: make C-a/C-e truly shift-select aware 2020-03-28 00:41:04 -04:00
be257140b4 Merge pull request #2782 from vqhuy/security
Fix TLS error caused by #2763
2020-03-27 21:27:12 -04:00
9709d257d9 Fix TLS error caused by #2763
Check whether the current gnutls library supports tls1.3
Add more tests for `doom/am-i-secure`
2020-03-28 02:24:12 +01:00
f4ff7fda38 Fix #2756: inhibited shift-selection on C-a/C-e 2020-03-27 03:03:37 -04:00
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
2c2df9df8c Fix & extend doom/help-packages
+ It would display Doom's commit, rather than the package's
+ Add Homepage link
+ Fix module lists for packages that aren't installed
2020-03-13 17:33:40 -04:00
dd402b7db3 Remove references to enh-ruby-mode 2020-03-12 11:29:54 -04:00
8f68237e8b Don't pretty-print doom/info's packages section
Your doom/info should be a compact summary of your config. Pretty
printing the packages listing vertically consumed too much space.
2020-03-10 23:54:07 -04:00
fb8d96f1cb Preserve cursor+window position, rather than recenter
After n/N or */# searches with evil.
2020-03-06 16:36:35 -05:00
f8a69464d0 Remove smartparens dependency for doom/info 2020-03-03 16:15:43 -05:00
79e5a27fab Prefix arg = don't restore last scratch buffer 2020-03-03 12:44:33 -05:00
bbd1561a3c Make doom-real-buffer-p work for indirect buffers 2020-03-01 01:33:40 -05:00
e54ebcbff5 Fix #2607: void-variable doom-scratch-initial-major-mode error
And fix "selected deleted buffer" error caused by aggressive
window-configuration-change-hook function.
2020-02-26 09:46:50 -05:00
9fa76836c1 Persist scratch buffer point, mode & contents
Also renames doom-scratch-buffer-major-mode ->
doom-scratch-initial-major-mode, since it only affects the initial
buffer now.

This was designed to be backwards compatible; you won't lose your
scratch buffers from this update. Though I may remove the old format in
3.1.
2020-02-25 20:30:23 -05:00
da3e24e686 Preserve cursor position for scratch buffer
Not across restarts, but across toggles of the scratch popup.
2020-02-25 18:11:13 -05:00
b30f38ac06 Minor refactor & reformatting across the board 2020-02-23 15:42:43 -05:00
65a71d5647 Link to doom-real-buffer-p in other real buffer functions
To make the explanation easier to find.
2020-02-22 18:31:10 -05:00
8a7763337d doom refresh -> doom sync
refresh isn't going anywhere, but sync will be the canonical command
here on out, because it is more appropriate for kind of work it will be
doing in the future.
2020-02-19 23:34:16 -05:00
1910453e29 The byte-compiler ate my baby 2020-02-06 16:55:27 -05:00
77e58609d4 doom/update-pinned-package-form: improve error feedback 2020-02-06 15:27:03 -05:00
1cacfcf962 Fix #2479 2020-02-03 13:01:46 -05:00